diff --git a/loader.js b/loader.js index d3ec02e613..3015bb18e7 100644 --- a/loader.js +++ b/loader.js @@ -172,6 +172,10 @@ Loader.addClusterEvents = function(callback) { } }); + cluster.on('disconnect', function(worker) { + console.log('[cluster] Child Process (' + worker.process.pid + ') has disconnected'); + }); + callback(); } diff --git a/src/socket.io/index.js b/src/socket.io/index.js index 59aa7d5869..84d52fdb5b 100644 --- a/src/socket.io/index.js +++ b/src/socket.io/index.js @@ -214,7 +214,10 @@ Sockets.init = function(server) { }, Namespaces); if(!methodToCall) { - return winston.warn('[socket.io] Unrecognized message: ' + payload.name); + if (process.env.NODE_ENV === 'development') { + winston.warn('[socket.io] Unrecognized message: ' + payload.name); + } + return; } if (Namespaces[namespace].before) {