add LastPong to stale log message

This commit is contained in:
Sebastian Mark 2024-11-21 19:29:44 +01:00
parent b0b6c702da
commit 7820d2acf0

View file

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