log debug only with debug flag

This commit is contained in:
Djeeberjr 2022-03-08 13:24:01 +01:00
parent 60b369fe27
commit 47c38ac731

View File

@ -51,10 +51,12 @@ class Log {
}
public static function debug(msg:Dynamic, ?pos:haxe.PosInfos) {
#if debug
writer.writeLn(logLine("DEBG",pos,msg), Gray);
#if webconsole
Debug.printWeb(logLine("DEBG",pos,msg));
#end
#end
}
public static function silly(msg:Dynamic, ?pos:haxe.PosInfos) {