show warning and errors for socket.io also show info in dev

v1.18.x
barisusakli 10 years ago
parent 8d8731c609
commit 347e37a224

@ -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'

Loading…
Cancel
Save