trace can now be used in debug mode
This commit is contained in:
@@ -21,6 +21,12 @@ class Log {
|
||||
@:allow(kernel.Init)
|
||||
private static function init() {
|
||||
onLog = onLogTrigger.asSignal();
|
||||
|
||||
#if debug
|
||||
haxe.Log.trace = function(v:Dynamic, ?infos:haxe.PosInfos) {
|
||||
Log.debug(v, infos);
|
||||
}
|
||||
#end
|
||||
}
|
||||
|
||||
public static function info(msg:Dynamic, ?pos:haxe.PosInfos) {
|
||||
|
||||
Reference in New Issue
Block a user