Skip to content

Commit d7a8e4a

Browse files
committed
fix(exchange): change log level from Warn to Debug for TradeQueryOptions
1 parent c9ab41f commit d7a8e4a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/exchange/binance/exchange.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,7 @@ func (e *Exchange) queryMarginTrades(
14351435
req.FromID(int64(options.LastTradeID))
14361436
}
14371437
if (options.StartTime != nil || options.EndTime != nil) && options.LastTradeID > 0 {
1438-
log.Warnf("both startTime/endTime and lastTradeID are set in TradeQueryOptions, lastTradeID will be ignored")
1438+
log.Debugf("both startTime/endTime and lastTradeID are set in TradeQueryOptions, lastTradeID will be ignored")
14391439
}
14401440
remoteTrades, err = req.Do(ctx)
14411441
if err != nil {
@@ -1481,7 +1481,7 @@ func (e *Exchange) querySpotTrades(
14811481
req.FromID(options.LastTradeID)
14821482
}
14831483
if (options.StartTime != nil || options.EndTime != nil) && options.LastTradeID > 0 {
1484-
log.Warnf("both startTime/endTime and lastTradeID are set in TradeQueryOptions, lastTradeID will be ignored")
1484+
log.Debugf("both startTime/endTime and lastTradeID are set in TradeQueryOptions, lastTradeID will be ignored")
14851485
}
14861486

14871487
if options.Limit > 0 {

pkg/exchange/binance/futures.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ func (e *Exchange) queryFuturesTrades(
322322
req.FromID(int64(options.LastTradeID))
323323
}
324324
if (options.StartTime != nil || options.EndTime != nil) && options.LastTradeID > 0 {
325-
log.Warnf("both startTime/endTime and lastTradeID are set in TradeQueryOptions, lastTradeID will be ignored")
325+
log.Debugf("both startTime/endTime and lastTradeID are set in TradeQueryOptions, lastTradeID will be ignored")
326326
}
327327

328328
remoteTrades, err = req.Do(ctx)

0 commit comments

Comments
 (0)