socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

how to stop server debugging mode

Open rahul23134 opened this issue 14 years ago • 2 comments

I have started socket.io server using node.js self.socket = io.listen(8004); and it is printing a lot on console e.g.

debug - clearing poll timeout debug - xhr-polling writing 8:: debug - set close timeout for client 211284805669819852 debug - xhr-polling closed due to exceeded duration debug - setting request GET /socket.io/1/xhr-polling/211284805669819852?t=1324360963759 debug - setting poll timeout debug - discarding transport debug - cleared close timeout for client 211284805669819852 debug - clearing poll timeou

Can i stop this output on console. if yes then how ?

rahul23134 avatar Dec 20 '11 06:12 rahul23134

Set the log level based on NODE_ENV value:

io.set("log level", 1);

Also, this should be asked in the mailing list, not logged as a bug.

sri-rang avatar Dec 20 '11 06:12 sri-rang

closed based on @Srirangan's comments, it should indeed be asked on the google groups forums instead of in a bug base.

3rd-Eden avatar Dec 29 '11 19:12 3rd-Eden