Skip to content

Commit

Permalink
fix: reduce logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Dec 23, 2024
1 parent 8bfa0b1 commit 2c7077f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/pkg/wss/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (ws *WebsocketHelper) Read(ctx context.Context, ch chan any) error {
var t any
err := wsjson.Read(ctx, ws.Conn, &t)
if err != nil {
log.Error().Err(err).Str("endpoint", ws.Endpoint).Msg("error reading from websocket")
log.Warn().Err(err).Str("endpoint", ws.Endpoint).Msg("error reading from websocket")
return err
}
ch <- t
Expand All @@ -198,7 +198,7 @@ func (ws *WebsocketHelper) Close() error {
}
err := ws.Conn.Close(websocket.StatusNormalClosure, "")
if err != nil {
log.Error().Err(err).Str("endpoint", ws.Endpoint).Msg("error closing websocket")
log.Warn().Err(err).Str("endpoint", ws.Endpoint).Msg("error closing websocket")
return err
}
return nil
Expand Down

0 comments on commit 2c7077f

Please sign in to comment.