Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable websocket writing debug message

Is there a way to disable debug - websocket writing 5::: message that constantly come up in the console when the websocket sending something, the message is being to chatty.

like image 257
nihulus Avatar asked Sep 25 '12 13:09

nihulus


2 Answers

You have to set log level on socket.io instance:

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

Lower number will give you less info ( with 0 I guess none? ).

like image 86
freakish Avatar answered Oct 29 '22 03:10

freakish


include this in the app.js where you have server code

io.set('log level', 1);
like image 30
Ajey Avatar answered Oct 29 '22 04:10

Ajey