avoid showing error reading message on production

This commit is contained in:
pluja
2023-11-21 18:34:14 +01:00
parent 7929a3c8a7
commit 1eaf1c42ea

View File

@@ -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)