From c3e079b57a8abb3994af84986da6bc73ca319de2 Mon Sep 17 00:00:00 2001 From: kebeney Date: Sun, 12 May 2024 03:47:30 +0300 Subject: [PATCH] Update http.js to emit the info message along with the error on the warn even when error occurs --- lib/winston/transports/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/winston/transports/http.js b/lib/winston/transports/http.js index 17f661af4..5449e1367 100644 --- a/lib/winston/transports/http.js +++ b/lib/winston/transports/http.js @@ -64,7 +64,7 @@ module.exports = class Http extends TransportStream { } if (err) { - this.emit('warn', err); + this.emit('warn', err, info); } else { this.emit('logged', info); }