diff --git a/lib/winston/rejection-handler.js b/lib/winston/rejection-handler.js index 84d65ce33..7cb18ed81 100644 --- a/lib/winston/rejection-handler.js +++ b/lib/winston/rejection-handler.js @@ -150,7 +150,7 @@ module.exports = class RejectionHandler { */ _addHandler(handler) { if (!this.handlers.has(handler)) { - handler.handleExceptions = true; + handler.handleRejections = true; const wrapper = new ExceptionStream(handler); this.handlers.set(handler, wrapper); this.logger.pipe(wrapper);