Browse files

improved logger

  • Loading branch information...
1 parent 8e7cc8c commit 54cd3b759697f0c25a95c74b6a6a66d7af714129 @julien51 julien51 committed Mar 21, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 modules/logger.js
View
6 modules/logger.js
@@ -3,11 +3,7 @@ var logger = require('winston');
// http://xmpp.org/extensions/xep-0160.html
function format_log(client, message) {
- if(typeof(client.streamId) === "undefined") {
- return [client.socket.remoteAddress, message].join(" ");
- } else {
- return [client.socket.remoteAddress, client.streamId, message].join(" ");
- }
+ return [client.socket.remoteAddress, client.streamId, message].join(" ");
}
function Logger() {

0 comments on commit 54cd3b7

Please sign in to comment.