add LastPong to stale log message
This commit is contained in:
parent
92260b44db
commit
a98b4bc154
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ func RemoveStaleClients() {
|
||||||
if !sendPing(client) || isStale(client) {
|
if !sendPing(client) || 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)
|
helper.Logger.Info("Removed stale client", "host", client.RealIP, "lastPong", client.LastPong)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mu.Unlock()
|
mu.Unlock()
|
||||||
|
|
Loading…
Reference in a new issue