diff --git a/lib/core/logger.js b/lib/core/logger.js index 99e783c4f..8aa02fe26 100644 --- a/lib/core/logger.js +++ b/lib/core/logger.js @@ -40,7 +40,7 @@ Logger.prototype.warn = function () { if (!arguments.length || !(this.shouldLog('warn'))) { return; } - this.events.emit("log", "warning", ...arguments); + this.events.emit("log", "warn", ...arguments); this.logFunction(...Array.from(arguments).map(t => { return t ? t.yellow : t; })); this.writeToFile("[warning]: ", ...arguments); };