Skip to content

Commit

Permalink
bugfix for remote logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mfassler committed Aug 24, 2015
1 parent 908968d commit 549bf41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,15 @@ Logger.prototype._outputLog = function (levelName, bufferedMsg) {
// to make sure the log rotation is done accurately
file.log(levelName, bufferedMsg);
}
if (this.config.remote) {
remote.log(levelName, bufferedMsg);
}
var msges = bufferedMsg.filter(function (item) {
return item.msg;
});
var times = bufferedMsg.filter(function (item) {
return item.time;
});
if (this.config.remote) {
remote.log(levelName, msges.join('\n'));
}
events.emit('output', address, this.name, levelName, { messages: msges, timestamps: times });
};

Expand Down

0 comments on commit 549bf41

Please sign in to comment.