Merge pull request #1235 from c9s/c9s/turn-off-error-log

CHORE: turn off network error log
This commit is contained in:
c9s 2023-07-20 17:16:10 +08:00 committed by GitHub
commit d730bc8d41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,13 +214,13 @@ func (s *StandardStream) Read(ctx context.Context, conn *websocket.Conn, cancel
return return
case net.Error: case net.Error:
log.WithError(err).Error("websocket read network error") log.WithError(err).Warn("websocket read network error")
_ = conn.Close() _ = conn.Close()
s.Reconnect() s.Reconnect()
return return
default: default:
log.WithError(err).Error("unexpected websocket error") log.WithError(err).Warn("unexpected websocket error")
_ = conn.Close() _ = conn.Close()
s.Reconnect() s.Reconnect()
return return