[build] update gulp debug logger

This commit is contained in:
2017-12-20 17:53:58 +03:00
parent 69c2b735a0
commit 6345ddcd19
17 changed files with 212 additions and 77 deletions

View File

@@ -1,5 +1,6 @@
package ru.m.tankz;
import haxework.log.SocketLogger;
import haxework.resources.Resources;
import haxework.resources.IResources;
import haxework.gui.VGroupView;
@@ -31,6 +32,9 @@ class Client implements IConnectionHandler {
#if flash
L.push(new JSLogger());
#end
#if debug
L.push(new SocketLogger());
#end
Const.init();
L.d(TAG, "Debug: " + Const.DEBUG);
L.i(TAG, "Version: " + Const.VERSION);

View File

@@ -38,8 +38,11 @@ class Server extends ThreadServer<Session, Bytes> {
public static function main() {
L.push(new TraceLogger());
#if debug
L.push(new SocketLogger());
#end
L.d(TAG, "Running");
L.i(TAG, "Build: " + CompilationOption.get("build"));
Provider.set(IPacketBuilder, new PacketBuilder());
var wserver = new Server();
wserver.run("localhost", 5001);