Skip to content

Commit

Permalink
Handle unknown objects sent as exception param on logger
Browse files Browse the repository at this point in the history
  • Loading branch information
etduroch committed Nov 25, 2014
1 parent cb536ce commit 77e56af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ _Logger.prototype = {
logEvt.message += " " + exception;
} else if (exception.message && exception.name) {
logEvt.exception = exception;
} else {
logEvt.message += " " + JSON.stringify(exception);
}
}

Expand Down

0 comments on commit 77e56af

Please sign in to comment.