Skip to content

Commit

Permalink
fixed socket.io logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Pita committed Nov 19, 2011
1 parent 53bf7dc commit 2e79bd5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions node/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,25 +436,25 @@ async.waterfall([

//this is only a workaround to ensure it works with all browers behind a proxy
//we should remove this when the new socket.io version is more stable
io.set('transports', ['xhr-polling']);
//io.set('transports', ['xhr-polling']);

This comment has been minimized.

Copy link
@riseuplabs

riseuplabs Nov 25, 2011

I believe that this change is what is causing #224. If I uncomment this line, the problem goes away.

This comment has been minimized.

Copy link
@Pita

Pita Nov 25, 2011

Author Contributor

Ups... yeah you're right. Changing this line happend by mistake


var socketIOLogger = log4js.getLogger("socket.io");
io.set('logger', {
debug: function (str)
{
socketIOLogger.debug(str);
socketIOLogger.debug.apply(socketIOLogger, arguments);
},
info: function (str)
{
socketIOLogger.info(str);
socketIOLogger.info.apply(socketIOLogger, arguments);
},
warn: function (str)
{
socketIOLogger.warn(str);
socketIOLogger.warn.apply(socketIOLogger, arguments);
},
error: function (str)
{
socketIOLogger.error(str);
socketIOLogger.error.apply(socketIOLogger, arguments);
},
});

Expand Down

0 comments on commit 2e79bd5

Please sign in to comment.