Skip to content

Commit

Permalink
[fix] Update bad self reference
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Sep 12, 2011
1 parent 0c864f8 commit c866bac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/winston/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ Logger.prototype._getExceptionHandlers = function () {
// up from this instance if `emitErrs` has been set.
//
Logger.prototype._onError = function (transport, err) {
if (self.emitErrs) {
self.emit('error', err, transport);
if (this.emitErrs) {
this.emit('error', err, transport);
}
};

0 comments on commit c866bac

Please sign in to comment.