> and "console.error" is more of a friend than console.log in locking cases. It is output immediately (so it will slow your server down a tad since it is sync rather than async) but you don't loose any messages
console.log is synchronous as well, has been since 0.6, iirc.
On Thu, Mar 21, 2013 at 2:58 PM, Nathanael Anderson
<
nathanae...@gmail.com> wrote:
> Adding lot of logging -- and "console.error" is more of a friend than
> console.log in locking cases. It is output immediately (so it will slow
> your server down a tad since it is sync rather than async) but you don't
> loose any messages. One thing to track is how many connections you have
> (both http & socket) that are currently active and how many connections you
> have active to mongo (any any other things like memcache)... You might be
> finding that one of your pools is not releasing resources.
>
> Nathanael A.
>
> --
> --
> Job Board:
http://jobs.nodejs.org/
> Posting guidelines:
>
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to
nod...@googlegroups.com
> To unsubscribe from this group, send email to
>
nodejs+un...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
nodejs+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>