From 8b7e8350a047c7acd7bc52ce0c17408a86a8aa28 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Thu, 21 Nov 2024 20:15:33 +0100 Subject: [PATCH] format last pong timestamp in log msg --- 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 f4fce6b..31e56b5 100644 --- a/internal/websocket/staleClients.go +++ b/internal/websocket/staleClients.go @@ -22,7 +22,7 @@ func RemoveStaleClients() { if isStale(client) { client.Conn.Close() delete(Clients, client.Conn.LocalAddr()) - helper.Logger.Info("Removed stale client", "host", client.RealIP, "lastPong", client.LastPong) + helper.Logger.Info("Removed stale client", "host", client.RealIP, "lastPong", client.LastPong.Format(time.RFC3339)) } } mu.Unlock()