문제

I would like to remove the debugging mode. I am using express, redis, socket.io and connect-redis, but I do not know where the debugging mode comes from.

Node debug

Someone has an idea?

도움이 되었습니까?

해결책

Update

To completely remove debugging use:

var io = require('socket.io').listen(app, { log: false });

Where app is node.js http server / express etc.


You forgot to mention you are also using socket.io. This is coming from socket.io. You can disable this by configuration:

io.set('log level', 1); // reduce logging

다른 팁

Just configure the log level to number 1 to avoid income unnecessary messages.

You can figure out more information about Socket.IO options on this link.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top