rpc/lib: set logger on ws conn
This commit is contained in:
parent
5c29d7aba9
commit
b6031d5f4b
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue