server: add log message on successful upstream connection

This commit is contained in:
mappu 2017-02-05 18:24:32 +13:00
parent edffaac74b
commit ade4439f92
1 changed files with 1 additions and 0 deletions

View File

@ -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")