MCPcopy
hub / github.com/winstonjs/winston / unhandle

Method unhandle

lib/winston/rejection-handler.js:60–69  ·  view source on GitHub ↗

* Removes any handlers to `unhandledRejection` events for the current * process. This does not modify the state of the `this.handlers` set. * @returns {undefined}

()

Source from the content-addressed store, hash-verified

58 * @returns {undefined}
59 */
60 unhandle() {
61 if (this.catcher) {
62 process.removeListener('unhandledRejection', this.catcher);
63 this.catcher = false;
64
65 Array.from(this.handlers.values()).forEach(wrapper =>
66 this.logger.unpipe(wrapper)
67 );
68 }
69 }
70
71 /**
72 * TODO: add method description

Callers 6

configureMethod · 0.45
closeMethod · 0.45
unhandleExceptionsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected