From 7820d2acf03617268112d3b64a0d4811e031f505 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 7e70553..f27672d 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()