From d0c3f263c1740971300d7a4b0ad78cba4d3a4e2e Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Thu, 21 Nov 2024 13:07:59 +0100 Subject: [PATCH] fixup! add log message when removing stale client --- internal/websocket/staleClients.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/websocket/staleClients.go b/internal/websocket/staleClients.go index 5bb5047..a3afe14 100644 --- a/internal/websocket/staleClients.go +++ b/internal/websocket/staleClients.go @@ -19,7 +19,7 @@ func RemoveStaleClients() { if !sendPing(client) || isStale(client) { client.Conn.Close() delete(Clients, client.Conn.LocalAddr()) - helper.Logger.Info("Removed stale client", "host", client.RealIP, "clients", len(Clients)) + helper.Logger.Info("Removed stale client", "host", client.RealIP) } } mu.Unlock()