format last pong timestamp in log msg
This commit is contained in:
parent
994526a30d
commit
426479fb52
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue