From 47c38ac731abaa5e669c20d1ee9bcbc892a504f6 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Tue, 8 Mar 2022 13:24:01 +0100 Subject: [PATCH] log debug only with debug flag --- src/kernel/Log.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kernel/Log.hx b/src/kernel/Log.hx index 601d69b..22b9be6 100644 --- a/src/kernel/Log.hx +++ b/src/kernel/Log.hx @@ -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) {