Skip to content

Commit

Permalink
types: turn off network error log
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Jul 20, 2023
1 parent a3c16a4 commit a45c241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/types/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ func (s *StandardStream) Read(ctx context.Context, conn *websocket.Conn, cancel
return

case net.Error:
log.WithError(err).Error("websocket read network error")
log.WithError(err).Warn("websocket read network error")
_ = conn.Close()
s.Reconnect()
return

default:
log.WithError(err).Error("unexpected websocket error")
log.WithError(err).Warn("unexpected websocket error")
_ = conn.Close()
s.Reconnect()
return
Expand Down

0 comments on commit a45c241

Please sign in to comment.