log debug only with debug flag
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user