Skip to content

Commit

Permalink
Fix 'Maximum call stack size exceeded' error with custom formatter (I…
Browse files Browse the repository at this point in the history
…ssue #862)
  • Loading branch information
veger committed Aug 16, 2016
1 parent de69bcc commit 4ce8b16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/winston/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ exports.log = function (options) {
// Remark: this should really be a call to `util.format`.
//
if (typeof options.formatter == 'function') {
options.meta = meta;
return String(options.formatter(exports.clone(options)));
}

Expand Down

0 comments on commit 4ce8b16

Please sign in to comment.