mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-09 13:36:14 +00:00
trigger log events for all log levels
This commit is contained in:
parent
df81b10bec
commit
2e5ba76dd5
@ -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);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user