From f707f337122ad629aa1033ff935fe1b5e9aed170 Mon Sep 17 00:00:00 2001 From: zizifn <515868058@qq.com> Date: Tue, 21 Jun 2022 23:06:57 +0800 Subject: [PATCH] enhance message for logs with no transports #2114 (#2139) * enhance message for logs with no transports #2114 * Shorten additional warning Co-authored-by: wbt --- lib/winston/logger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/winston/logger.js b/lib/winston/logger.js index febfb67f7..5f8758c89 100644 --- a/lib/winston/logger.js +++ b/lib/winston/logger.js @@ -300,7 +300,7 @@ class Logger extends Transform { if (!this._readableState.pipes) { // eslint-disable-next-line no-console console.error( - '[winston] Attempt to write logs with no transports %j', + '[winston] Attempt to write logs with no transports, which can increase memory usage: %j', info ); }