diff --git a/src/kernel/KernelEvents.hx b/src/kernel/KernelEvents.hx index f95ae53..8828f36 100644 --- a/src/kernel/KernelEvents.hx +++ b/src/kernel/KernelEvents.hx @@ -216,7 +216,7 @@ class KernelEvents { case "websocket_success": this.onWebsocketSuccessTrigger.trigger({url: event[2], handle: event[3]}); default: - Log.error("Unknown cc event: " + eventName); + Log.error('Unknown event: $eventName'); } } diff --git a/src/kernel/net/Net.hx b/src/kernel/net/Net.hx index 905a654..f0c8ac8 100644 --- a/src/kernel/net/Net.hx +++ b/src/kernel/net/Net.hx @@ -127,7 +127,7 @@ class Net { } if (!protoHandlers.exists(proto)) { - Log.warn("Trying to route package to proto: \"" + proto + "\" but nothing was register"); + Log.warn('Trying to route package to proto: $proto but nothing was register'); return; } diff --git a/src/kernel/net/Routing.hx b/src/kernel/net/Routing.hx index 01ad4d9..2edd9ec 100644 --- a/src/kernel/net/Routing.hx +++ b/src/kernel/net/Routing.hx @@ -95,7 +95,7 @@ class Routing { } false; default: - Log.error("Expected RouteDiscover or RouteDiscoverResponse type"); + Log.error("Expected package to be a Route discover package"); false; }; @@ -153,13 +153,11 @@ class Routing { if (this.routingTable.exists(toID)){ if (this.routingTable[toID].cost > fullCost){ - Log.info("Better route: " + toID + " -> " + interf.name() + ":$"+fullCost); this.routingTable[toID] = {interf:interf,cost:cost + interf.getBaseRoutingCost(),rep: rep}; this.prepareRouteUpdate(); } }else{ this.routingTable[toID] = {interf:interf,cost:cost + interf.getBaseRoutingCost(),rep: rep}; - Log.info("New route: " + toID + " -> " + interf.name() + ":$"+fullCost); this.onNewNeigborTrigger.trigger(toID); this.prepareRouteUpdate(); }