From df25fa2b93e1ea134cfca8bd1c46934ad4f2a7a3 Mon Sep 17 00:00:00 2001 From: Yuri Heiko Date: Thu, 30 Apr 2020 15:39:50 -0300 Subject: [PATCH] fix: change property of handleRejections (#1779) 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);