From 170fcae1a6829c32078e9c7df93639eec3b7be30 Mon Sep 17 00:00:00 2001 From: bgSosh Date: Thu, 2 May 2013 10:02:33 +0300 Subject: [PATCH] Hack for issue #84 Simple hack I use to solve the problem described in 84. I remove 'trace' completely from the meta info (seems to be it's duplicated in err.stack. I also remove the split('\n') from err.stack, which causes the one line problem. --- lib/winston/exception.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/winston/exception.js b/lib/winston/exception.js index 22717dd95..8a1577e90 100644 --- a/lib/winston/exception.js +++ b/lib/winston/exception.js @@ -16,8 +16,8 @@ exception.getAllInfo = function (err) { date: new Date().toString(), process: exception.getProcessInfo(), os: exception.getOsInfo(), - trace: exception.getTrace(err), - stack: err.stack && err.stack.split('\n') + //trace: exception.getTrace(err), + stack: err.stack //&& err.stack.split('\n') }; };