diff --git a/lib/winston/logger.js b/lib/winston/logger.js index 265d8e131..7e9cd452b 100644 --- a/lib/winston/logger.js +++ b/lib/winston/logger.js @@ -141,7 +141,7 @@ class Logger extends Transform { ); } - if (!Object.keys(this.levels).includes(this.level)){ + if (!Object.keys(this.levels).includes(this.level)) { const message = [ '[winston] Log level <${this.level}> is not defined in levels definition.', 'Please double check the setup of your transports and/or custom log levels.',