Disable Debug info in terminal

75 views
Skip to first unread message

pjnovas

unread,
Sep 1, 2011, 6:10:17 PM9/1/11
to nowjs
Hi, How can I disable debug messages in terminal?, like: "debug -
clearing poll timeout" ... there are a lot of them and everything
seems to work awesome for nowjs, so I want to get focus on my logs to
the console.
Is there a way to enable/disable those logs?

Thanks

Sridatta Thatipamala

unread,
Sep 1, 2011, 6:15:13 PM9/1/11
to no...@googlegroups.com
That is the socket.io logging that you see. To disable the messages, you need to set the "log level" to 0.
You can do so by passing in an options object as the second argument to nowjs.initialize function. For example:

var everyone = nowjs.initialize(server, {socketio: {"log level": 0}}

pjnovas

unread,
Sep 1, 2011, 6:37:16 PM9/1/11
to nowjs
Nice, "log level" ... I'm very new on Node, I didn't know that even
existed :D
it worked great, thanks!!!
Reply all
Reply to author
Forward
0 new messages