Skip to content

Commit

Permalink
fix: reduce log spamming
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Dec 23, 2024
1 parent 2c7077f commit 365271a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion node/pkg/websocketfetcher/providers/bingx/bingx.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (f *BingxFetcher) customReadFunc(ctx context.Context, conn *websocket.Conn)
var result map[string]interface{}
_, data, err := conn.Read(ctx)
if err != nil {
log.Error().Str("Player", "Bingx").Err(err).Msg("error in bingx.customReadFunc, failed to read from websocket")
log.Warn().Str("Player", "Bingx").Err(err).Msg("error in bingx.customReadFunc, failed to read from websocket")
return nil, err
}

Expand Down
2 changes: 1 addition & 1 deletion node/pkg/websocketfetcher/providers/coinex/coinex.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (f *CoinexFetcher) customReadFunc(ctx context.Context, conn *websocket.Conn
var result map[string]interface{}
_, data, err := conn.Read(ctx)
if err != nil {
log.Error().Str("Player", "coinex").Err(err).Msg("error in coinex.customReadFunc, failed to read from websocket")
log.Warn().Str("Player", "coinex").Err(err).Msg("error in coinex.customReadFunc, failed to read from websocket")
return nil, err
}

Expand Down
2 changes: 1 addition & 1 deletion node/pkg/wss/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (ws *WebsocketHelper) Dial(ctx context.Context) error {
}
conn, _, err := dialFunc(ctx, ws.Endpoint, dialOption)
if err != nil {
log.Error().Err(err).Str("endpoint", ws.Endpoint).Msg("error opening websocket connection")
log.Warn().Err(err).Str("endpoint", ws.Endpoint).Msg("error opening websocket connection")
return err
}

Expand Down

0 comments on commit 365271a

Please sign in to comment.