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 8b7e8350a0

View file

@ -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()