From ade4439f922a29f189bd21e8aa2967aa9b60efe7 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 5 Feb 2017 18:24:32 +1300 Subject: [PATCH] server: add log message on successful upstream connection --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 558a371..a50e002 100644 --- a/main.go +++ b/main.go @@ -130,6 +130,7 @@ func (this *App) HubWorker(Nick, Pass string, so socketio.Socket, done chan stru case libnmdc.EVENT_CONNECTION_STATE_CHANGED: if hev.StateChange == libnmdc.CONNECTIONSTATE_CONNECTED { + log.Printf("[%s] Connected to hub\n", so.Id()) so.Emit("hello") } else if hev.StateChange == libnmdc.CONNECTIONSTATE_DISCONNECTED { so.Emit("close")