From 604289a0d5f8f748d5d4caa4ee2decb658af4fed Mon Sep 17 00:00:00 2001 From: Brian Stafford Date: Tue, 12 Nov 2024 11:14:50 -0600 Subject: [PATCH] log websocket handshake error at debug --- server/comms/server.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/comms/server.go b/server/comms/server.go index 0a40c2cc9e..e43a19b265 100644 --- a/server/comms/server.go +++ b/server/comms/server.go @@ -416,7 +416,11 @@ func (s *Server) Run(ctx context.Context) { wsConn, err := ws.NewConnection(w, r, pongWait) if err != nil { - log.Errorf("ws connection error: %v", err) + if errors.Is(err, ws.ErrHandshake) { + log.Debug(err) + } else { + log.Errorf("ws connection error: %v", err) + } return }