How to remove debugging from an Express app?

node.jsRedisExpresssocket.io

node.js Problem Overview


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?

node.js Solutions


Solution 1 - node.js

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

Solution 2 - node.js

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionVsplitView Question on Stackoverflow
Solution 1 - node.jsAlfredView Answer on Stackoverflow
Solution 2 - node.jsItoView Answer on Stackoverflow