diff options
author | Peter 'Pita' Martischka <petermartischka@googlemail.com> | 2011-11-19 14:14:31 -0800 |
---|---|---|
committer | Peter 'Pita' Martischka <petermartischka@googlemail.com> | 2011-11-19 14:14:31 -0800 |
commit | 2e79bd50a3eb6ba6f3cdb5f30ad776f5249e7cc4 (patch) | |
tree | a76f12ac9d377173c29735b9b18dd4169bce947a /node/server.js | |
parent | 53bf7dc19dd4217dca6a9b454cdb72256aedcec1 (diff) | |
download | etherpad-lite-2e79bd50a3eb6ba6f3cdb5f30ad776f5249e7cc4.zip |
fixed socket.io logging
Diffstat (limited to 'node/server.js')
-rw-r--r-- | node/server.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/node/server.js b/node/server.js index d39fdcae..1e0b6283 100644 --- a/node/server.js +++ b/node/server.js @@ -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']); 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); }, }); |