Skip to content

Commit

Permalink
Merge pull request #298 from etduroch/master
Browse files Browse the repository at this point in the history
Handle unknown objects sent as exception param on logger
  • Loading branch information
DavidZey committed Nov 25, 2014
2 parents cb536ce + 77e56af commit ac0e20a
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 ac0e20a

Please sign in to comment.