diff --git a/lib/winston/logger.js b/lib/winston/logger.js index dc7866854..7523c69d7 100644 --- a/lib/winston/logger.js +++ b/lib/winston/logger.js @@ -107,6 +107,12 @@ class Logger extends Transform { // Hoist other options onto this instance. this.levels = levels || this.levels || config.npm.levels; this.level = level; + if(this.exceptions !== undefined) { + this.exceptions.unhandle(); + } + if(this.rejections !== undefined) { + this.rejections.unhandle(); + } this.exceptions = new ExceptionHandler(this); this.rejections = new RejectionHandler(this); this.profilers = {};