Skip to content

Commit

Permalink
fix: change property of handleRejections (#1779)
Browse files Browse the repository at this point in the history
change property handleExeptions with handleRejections to make it works
  • Loading branch information
YuriHeiko authored Apr 30, 2020
1 parent 950cbcd commit df25fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/winston/rejection-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit df25fa2

Please sign in to comment.