Reduce ccxt.pro verbosity

This commit is contained in:
Matthias 2024-05-26 19:10:32 +02:00
parent f33c4db572
commit 7e736a34dd
2 changed files with 2 additions and 3 deletions

View File

@ -2271,7 +2271,6 @@ class Exchange:
candle_limit = self.ohlcv_candle_limit(timeframe, candle_type)
min_date = int(date_minus_candles(timeframe, candle_limit - 5).timestamp())
last_refresh = self._pairs_last_refresh_time.get((pair, timeframe, candle_type), 0)
if self._exchange_ws:
candle_date = int(timeframe_to_prev_date(timeframe).timestamp() * 1000)
prev_candle_date = int(date_minus_candles(timeframe, 1).timestamp() * 1000)
@ -2298,7 +2297,7 @@ class Exchange:
)
# Check if 1 call can get us updated candles without hole in the data.
if min_date < last_refresh:
if min_date < self._pairs_last_refresh_time.get((pair, timeframe, candle_type), 0):
# Cache can be used - do one-off call.
not_all_data = False
else:

View File

@ -158,7 +158,7 @@ class ExchangeWS:
# Refreshed after candle was complete.
# logger.info(f"{candles[-1][0]} >= {candle_date}")
drop_hint = candles[-1][0] >= candle_date
logger.info(
logger.debug(
f"watch result for {pair}, {timeframe} with length {len(candles)}, "
f"{format_ms_time(candles[-1][0])}, "
f"lref={format_ms_time(refresh_date)}, "