From 426479fb528c98e9badc10b98801b95b3f1fbbe0 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..2a9de27 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("RFC3339")) } } mu.Unlock()