XXX add debug log for ping fail
This commit is contained in:
parent
a98b4bc154
commit
4fe1cbbbc7
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ func sendPing(client *models.WebsocketClient) bool {
|
|||
err := client.Conn.WriteMessage(websocket.PingMessage, nil)
|
||||
|
||||
if err != nil {
|
||||
helper.Logger.Info("ping failed", "host", client.RealIP)
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue