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 2927964 commit 2206c39Copy full SHA for 2206c39
lib/winston/logger.js
@@ -107,6 +107,12 @@ 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();
112
+ }
113
+ if(typeof logger.rejections !== 'undefined') {
114
+ logger.rejections.unhandle();
115
116
this.exceptions = new ExceptionHandler(this);
117
this.rejections = new RejectionHandler(this);
118
this.profilers = {};
0 commit comments