How to remove debugging from an Express app?

Vsplit picture Vsplit · Jul 24, 2011 · Viewed 44.8k times · Source

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?

Answer

Alfred picture Alfred · Jul 24, 2011

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