From 01cf7ceceb194f9228f57e200fbb022d7debfa8e Mon Sep 17 00:00:00 2001 From: Maarten Bezemer Date: Mon, 9 May 2016 13:35:32 +0200 Subject: [PATCH] Fix 'Maximum call stack size exceeded' error with custom formatter (Issue #862) --- lib/winston/common.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/winston/common.js b/lib/winston/common.js index 93a4450e9..97a8f34cc 100644 --- a/lib/winston/common.js +++ b/lib/winston/common.js @@ -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))); }