Skip to content

Commit

Permalink
enhance message for logs with no transports #2114 (#2139)
Browse files Browse the repository at this point in the history
* enhance message for logs with no transports #2114

* Shorten additional warning

Co-authored-by: wbt <wbt@users.noreply.github.com>
  • Loading branch information
zizifn and wbt committed Jun 21, 2022
1 parent d2a1356 commit f707f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/winston/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
Expand Down

0 comments on commit f707f33

Please sign in to comment.