How to disable debugging writing for websocket

Is there a way to turn off a message debug - websocket writing 5:::that constantly appears in the console when sending a website, a chat message.

+5
source share
3 answers

You must set the log level in socket.io:

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

A lower number will give you less information (with 0I think not?).

+13
source

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

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

.

http://socket.io/docs/logging-and-debugging,

DEBUG=* node yourfile.js

.

, , "chat_server.js"

DEBUG=* node chat_server.js

Node.js :

DEBUG=* node chat_server.js ^ SyntaxError: Unexpected token *

- , '*' ?

0

All Articles