Skip to content

Commit

Permalink
Merge pull request #868 from veger/fix_max_call_size_error
Browse files Browse the repository at this point in the history
Fix 'Maximum call stack size exceeded' error with custom formatter
  • Loading branch information
indexzero authored Jan 20, 2017
2 parents 739d802 + 01cf7ce commit 21980ac
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 21980ac

Please sign in to comment.