From 8b5517004ba0f1c2913c76c9cd44b9737f08c520 Mon Sep 17 00:00:00 2001 From: Yuri Heiko Date: Fri, 10 Apr 2020 20:19:27 -0300 Subject: [PATCH] fix: change property of handleRejections change property handleExeptions with handleRejections to make it works --- lib/winston/rejection-handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);