Skip to content

Commit

Permalink
[fix] Do not stringify objects returned from common.log unintention…
Browse files Browse the repository at this point in the history
…ally. Fixes #632.
  • Loading branch information
indexzero committed Oct 29, 2015
1 parent 5109493 commit 70ca2ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/winston/transports/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,11 @@ File.prototype.log = function (level, msg, meta, callback) {
depth: this.depth,
formatter: this.formatter,
humanReadableUnhandledException: this.humanReadableUnhandledException
}) + this.eol;
});

if (typeof output === 'string') {
output += this.eol;
}

if (!this.filename) {
//
Expand Down

0 comments on commit 70ca2ff

Please sign in to comment.