Node.js based forum software built for the modern web
show warning and errors for socket.io also show info in dev
barisusakli347e37a224e6
diff --git a/src/socket.io/index.js b/src/socket.io/index.jsindex 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 configvar 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'