diff --git a/src/kernel/Log.hx b/src/kernel/Log.hx index d9c5a39..d36bfd2 100644 --- a/src/kernel/Log.hx +++ b/src/kernel/Log.hx @@ -31,28 +31,28 @@ class Log { public static function info(msg:Dynamic, ?pos:haxe.PosInfos) { writer.writeLn("[INFO][" + pos.className + "]: " + Std.string(msg)); #if webconsole - Debug.printWeb("["+Net.instance.networkID+"][INFO][" + pos.className + "]: " + Std.string(msg)); + Debug.printWeb("[INFO][" + pos.className + "]: " + Std.string(msg)); #end } public static function warn(msg:Dynamic, ?pos:haxe.PosInfos) { writer.writeLn("[WARN][" + pos.className + "]: " + Std.string(msg), Yellow); #if webconsole - Debug.printWeb("["+Net.instance.networkID+"][WARN][" + pos.className + "]: " + Std.string(msg)); + Debug.printWeb("[WARN][" + pos.className + "]: " + Std.string(msg)); #end } public static function error(msg:Dynamic, ?pos:haxe.PosInfos) { writer.writeLn("[ERRO][" + pos.className + "]: " + Std.string(msg), Red); #if webconsole - Debug.printWeb("["+Net.instance.networkID+"][ERRO][" + pos.className + "]: " + Std.string(msg)); + Debug.printWeb("[ERRO][" + pos.className + "]: " + Std.string(msg)); #end } public static function debug(msg:Dynamic, ?pos:haxe.PosInfos) { writer.writeLn("[DEBG][" + pos.className + "]: " + Std.string(msg), Gray); #if webconsole - Debug.printWeb("["+Net.instance.networkID+"][DEBG][" + pos.className + "]: " + Std.string(msg)); + Debug.printWeb("[DEBG][" + pos.className + "]: " + Std.string(msg)); #end } diff --git a/src/util/Debug.hx b/src/util/Debug.hx index 669e256..8dc8ef9 100644 --- a/src/util/Debug.hx +++ b/src/util/Debug.hx @@ -1,6 +1,7 @@ package util; import cc.HTTP; +import kernel.net.Net; import cc.ComputerCraft; import kernel.Log; @@ -17,7 +18,7 @@ class Debug { #if webconsole public static function printWeb(msg:String) { - HTTP.post("http://127.0.0.1:8080/", msg); + HTTP.post("http://127.0.0.1:8080/"+Net.instance.networkID, msg); } #end }