rpc/lib: set logger on ws conn

This commit is contained in:
Ethan Buchman 2017-06-24 21:55:31 -04:00
parent 5c29d7aba9
commit b6031d5f4b
1 changed files with 1 additions and 0 deletions

View File

@ -597,6 +597,7 @@ func (wm *WebsocketManager) WebsocketHandler(w http.ResponseWriter, r *http.Requ
// register connection
con := NewWSConnection(wsConn, wm.funcMap, wm.evsw)
con.SetLogger(wm.logger)
wm.logger.Info("New websocket connection", "remote", con.remoteAddr)
con.Start() // Blocking
}