Skip to content

Commit

Permalink
[fix] HandleExceptions now works as an option to .add
Browse files Browse the repository at this point in the history
Merge branch 'master' of https://github.com/mikelehen/winston into mikelehen-master
  • Loading branch information
jfhbrook committed Jun 13, 2012
2 parents af8f96f + e9da74c commit e417d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/winston/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ Logger.prototype.add = function (transport, options, created) {
// If this transport has `handleExceptions` set to `true`
// and we are not already handling exceptions, do so.
//
if (transport.handleExceptions && !this.catchExceptions) {
if (instance.handleExceptions && !this.catchExceptions) {
this.handleExceptions();
}

Expand Down

0 comments on commit e417d59

Please sign in to comment.