Skip to content

Commit

Permalink
Hack for issue winstonjs#84
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
srlowe committed May 2, 2013
1 parent 78b0894 commit 170fcae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/winston/exception.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
};
};

Expand Down

0 comments on commit 170fcae

Please sign in to comment.