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 Jan 20, 2025
1 parent 67a38a9 commit 8fd0f4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion node/pkg/websocketfetcher/providers/xt/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func ResponseToFeedData(response Response, feedMap map[string][]int32) ([]*commo
symbol := strings.ToUpper(strings.ReplaceAll(response.Data.Symbol, "_", "-"))
ids, exists := feedMap[symbol]
if !exists {
log.Error().Str("Player", "xt").Str("key", symbol).Msg("feed not found")
log.Warn().Str("Player", "xt").Str("raw", response.Data.Symbol).Str("key", symbol).Msg("feed not found")
return nil, fmt.Errorf("feed not found from xt for symbol: %s", symbol)
}
timestamp := time.UnixMilli(response.Data.Time)
Expand Down
2 changes: 1 addition & 1 deletion node/pkg/websocketfetcher/providers/xt/xt.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (f *XtFetcher) handleMessage(ctx context.Context, message map[string]any) e

feedDataList, err := ResponseToFeedData(raw, f.FeedMap)
if err != nil {
log.Error().Str("Player", "Xt").Err(err).Msg("error in xt.handleMessage, failed to convert response to feed data")
log.Warn().Str("Player", "Xt").Err(err).Msg("error in xt.handleMessage, failed to convert response to feed data")
return err
}

Expand Down

0 comments on commit 8fd0f4d

Please sign in to comment.