From a98b4bc154e73aedf31979cd18e41283130dd8fa Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Thu, 21 Nov 2024 19:29:44 +0100 Subject: [PATCH] add LastPong to stale log message --- 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 a3afe14..0752208 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) + helper.Logger.Info("Removed stale client", "host", client.RealIP, "lastPong", client.LastPong) } } mu.Unlock()