Skip to content

Commit

Permalink
dont need to log an error if a ping to a client fails
Browse files Browse the repository at this point in the history
  • Loading branch information
whyrusleeping committed Nov 16, 2023
1 parent 1e3e99d commit fdd621f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgs/bgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ func (bgs *BGS) EventsHandler(c echo.Context) error {
}

if err := conn.WriteControl(websocket.PingMessage, []byte{}, time.Now().Add(5*time.Second)); err != nil {
log.Errorf("failed to ping client: %s", err)
log.Warnf("failed to ping client: %s", err)
cancel()
return
}
Expand Down

0 comments on commit fdd621f

Please sign in to comment.