From 347e37a224e6d1326b0c450a9dcb39d35eba319c Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 20 Nov 2014 15:53:23 -0500 Subject: [PATCH] show warning and errors for socket.io also show info in dev --- src/socket.io/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/socket.io/index.js b/src/socket.io/index.js index 5499398fb5..ced9d8b3b9 100644 --- a/src/socket.io/index.js +++ b/src/socket.io/index.js @@ -68,7 +68,8 @@ function onUserDisconnect(uid, socketid, socketCount) { Sockets.init = function(server) { // Default socket.io config var config = { - log: false, + log: true, + 'log level': process.env.NODE_ENV === 'development' ? 2 : 1, transports: ['websocket', 'xhr-polling', 'jsonp-polling', 'flashsocket'], 'browser client minification': true, resource: nconf.get('relative_path') + '/socket.io'