aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Main.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/Main.hx')
-rw-r--r--src/client/Main.hx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/client/Main.hx b/src/client/Main.hx
index 76e1009..846acf6 100644
--- a/src/client/Main.hx
+++ b/src/client/Main.hx
@@ -319,9 +319,11 @@ class Main {
function onMessage(e):Void {
final data:WsEvent = Json.parse(e.data);
- final t:String = cast data.type;
- final t = t.charAt(0).toLowerCase() + t.substr(1);
- trace('Event: ${data.type}', untyped data[t]);
+ if (config != null && config.isVerbose) {
+ final t:String = cast data.type;
+ final t = t.charAt(0).toLowerCase() + t.substr(1);
+ trace('Event: ${data.type}', Reflect.field(data, t));
+ }
switch (data.type) {
case Connected:
onConnected(data);
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage