diff --git a/internal/msggateway/n_ws_server.go b/internal/msggateway/n_ws_server.go index c665c5556..b093395e8 100644 --- a/internal/msggateway/n_ws_server.go +++ b/internal/msggateway/n_ws_server.go @@ -209,6 +209,7 @@ func (ws *WsServer) unregisterClient(client *Client) { } func (ws *WsServer) wsHandler(w http.ResponseWriter, r *http.Request) { + defer log.ZInfo(context.Background(), "wsHandler", "remote addr", "url", r.URL.String()) connContext := newContext(w, r) if ws.onlineUserConnNum >= ws.wsMaxConnNum { httpError(connContext, errs.ErrConnOverMaxNumLimit)