moved log trigger before printWeb
This commit is contained in:
parent
df39865c3d
commit
bf378deea2
@ -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> {
|
||||||
|
Loading…
Reference in New Issue
Block a user