format last pong timestamp in log msg

This commit is contained in:
Sebastian Mark 2024-11-21 20:15:33 +01:00
parent 994526a30d
commit 426479fb52

View file

@ -22,7 +22,7 @@ func RemoveStaleClients() {
if isStale(client) { if isStale(client) {
client.Conn.Close() client.Conn.Close()
delete(Clients, client.Conn.LocalAddr()) 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() mu.Unlock()