mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
Merge pull request #1235 from c9s/c9s/turn-off-error-log
CHORE: turn off network error log
This commit is contained in:
commit
d730bc8d41
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user