From fdd621f38c9953789a80c0ed60467a3cfd70b3fe Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Thu, 16 Nov 2023 11:05:10 -0800 Subject: [PATCH] dont need to log an error if a ping to a client fails --- bgs/bgs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgs/bgs.go b/bgs/bgs.go index fa0e41565..9199a23c3 100644 --- a/bgs/bgs.go +++ b/bgs/bgs.go @@ -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 }