moved log trigger before printWeb

This commit is contained in:
Djeeberjr 2023-04-01 03:27:17 +02:00
parent df39865c3d
commit bf378deea2

View File

@ -53,12 +53,11 @@ class Log {
if (logLines.length > MAX_LINES) { if (logLines.length > MAX_LINES) {
logLines.shift(); logLines.shift();
} }
onLogTrigger.trigger(line);
#if webconsole #if webconsole
Debug.printWeb('[${Std.string(line.level)}][${line.origin}] ${line.message}'); Debug.printWeb('[${Std.string(line.level)}][${line.origin}] ${line.message}');
#end #end
onLogTrigger.trigger(line);
} }
public function getLines():ReadOnlyArray<LogLine> { public function getLines():ReadOnlyArray<LogLine> {