From 5de1c6e539ba607a32619c0355b2ac76eb172a0b Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 27 Feb 2018 06:34:17 -0500 Subject: [PATCH] trigger log events for all log levels --- lib/core/logger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); };