如何从 Express 应用程序中删除调试?

我想删除调试模式。我使用的是 expressredissocket.ioconnect-redis,但我不知道调试模式从何而来。

Node debug

有人有主意了吗?

45643 次浏览

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.