From 11f7f2142a641fc9d86a5663bbf75389c94032b5 Mon Sep 17 00:00:00 2001 From: Shaun Agostinho Date: Fri, 4 Oct 2024 10:15:16 -0700 Subject: [PATCH] update log entry for ws con --- web/ws.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/ws.go b/web/ws.go index 2869acb..b4eeb47 100644 --- a/web/ws.go +++ b/web/ws.go @@ -77,11 +77,11 @@ func getWebsocketEvents(r *Router) websocket.Namespaces { "agent": websocket.Events{ websocket.OnNamespaceConnected: func(nsConn *websocket.NSConn, msg websocket.Message) error { // with `websocket.GetContext` you can retrieve the Iris' `Context`. - ctx := websocket.GetContext(nsConn.Conn) + //ctx := websocket.GetContext(nsConn.Conn) - log.Infof("[%s] connected to namespace [%s] with IP [%s]", - nsConn, msg.Namespace, - ctx.Values().GetString("client_ip")) + log.Infof("[%s] connected to namespace [%s]", /* with IP [%s]""*/ + nsConn, msg.Namespace, /*, + ctx.Values().GetString("client_ip")*/) return nil }, websocket.OnNamespaceDisconnect: func(nsConn *websocket.NSConn, msg websocket.Message) error {