diff --git a/lib/winston/transports/console.js b/lib/winston/transports/console.js index b54f3da9c..12cf0e60d 100644 --- a/lib/winston/transports/console.js +++ b/lib/winston/transports/console.js @@ -44,6 +44,11 @@ module.exports = class Console extends TransportStream { log(info, callback) { setImmediate(() => this.emit('logged', info)); + if (this.silent) { + callback() + return true; + } + // Remark: what if there is no raw...? if (this.stderrLevels[info[LEVEL]]) { if (console._stderr) {