Skip to content

Commit

Permalink
avoid showing error reading message on production
Browse files Browse the repository at this point in the history
  • Loading branch information
pluja committed Nov 21, 2023
1 parent 7929a3c commit 1eaf1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (s *Server) SetupWebsocket() {
// Check for normal close error (1000) or going away error (1001)
if err.Error() != "websocket: close 1000 (normal)" &&
err.Error() != "websocket: close 1001 (going away)" {
log.Error().Err(err).Msgf("Error reading message")
log.Debug().Err(err).Msgf("Error reading message")
}
// Remove the client from the slice if it has disconnected
s.clients = removeWsClient(s.clients, c)
Expand Down

0 comments on commit 1eaf1c4

Please sign in to comment.