Skip to content

Commit 7ca9e9c

Browse files
committed
Bugfix: copy-paste from referenced source
1 parent 2206c39 commit 7ca9e9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/winston/logger.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ class Logger extends Transform {
107107
// Hoist other options onto this instance.
108108
this.levels = levels || this.levels || config.npm.levels;
109109
this.level = level;
110-
if(typeof logger.exceptions !== 'undefined') {
111-
logger.exceptions.unhandle();
110+
if(typeof this.exceptions !== 'undefined') {
111+
this.exceptions.unhandle();
112112
}
113-
if(typeof logger.rejections !== 'undefined') {
114-
logger.rejections.unhandle();
113+
if(typeof this.rejections !== 'undefined') {
114+
this.rejections.unhandle();
115115
}
116116
this.exceptions = new ExceptionHandler(this);
117117
this.rejections = new RejectionHandler(this);

0 commit comments

Comments
 (0)