We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2206c39 commit 7ca9e9cCopy full SHA for 7ca9e9c
lib/winston/logger.js
@@ -107,11 +107,11 @@ class Logger extends Transform {
107
// Hoist other options onto this instance.
108
this.levels = levels || this.levels || config.npm.levels;
109
this.level = level;
110
- if(typeof logger.exceptions !== 'undefined') {
111
- logger.exceptions.unhandle();
+ if(typeof this.exceptions !== 'undefined') {
+ this.exceptions.unhandle();
112
}
113
- if(typeof logger.rejections !== 'undefined') {
114
- logger.rejections.unhandle();
+ if(typeof this.rejections !== 'undefined') {
+ this.rejections.unhandle();
115
116
this.exceptions = new ExceptionHandler(this);
117
this.rejections = new RejectionHandler(this);
0 commit comments