Permalink
Browse files

[fix] HandleExceptions now works as an option to .add

Merge branch 'master' of https://github.com/mikelehen/winston into mikelehen-master
  • Loading branch information...
2 parents af8f96f + e9da74c commit e417d59daa5e0cb313e0ebc13a1dc4f6886fadd4 @jfhbrook jfhbrook committed Jun 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/winston/logger.js
View
@@ -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();
}

0 comments on commit e417d59

Please sign in to comment.