From eed7631780498cd1cff87a37307f28781398f83f 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 758c3eae..ca3659e0 100644 --- a/lib/core/logger.js +++ b/lib/core/logger.js @@ -32,7 +32,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); };