mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 03:41:14 +00:00
feat: improved download-data logging
This commit is contained in:
@@ -308,11 +308,15 @@ def _download_pair_history(
|
|||||||
candle_type=candle_type,
|
candle_type=candle_type,
|
||||||
until_ms=until_ms if until_ms else None,
|
until_ms=until_ms if until_ms else None,
|
||||||
)
|
)
|
||||||
logger.info(f"Downloaded data for {pair} with length {len(new_dataframe)}.")
|
logger.info(
|
||||||
|
f"Downloaded data for {pair}, {timeframe}, {candle_type} with length "
|
||||||
|
f"{len(new_dataframe)}."
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
new_dataframe = pair_candles
|
new_dataframe = pair_candles
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Downloaded data for {pair} with length {len(new_dataframe)}. Parallel Method."
|
f"Downloaded data for {pair}, {timeframe}, {candle_type} with length "
|
||||||
|
f"{len(new_dataframe)}. Parallel Method."
|
||||||
)
|
)
|
||||||
|
|
||||||
if data.empty:
|
if data.empty:
|
||||||
|
|||||||
@@ -896,7 +896,7 @@ def test_download_pair_history_with_pair_candles(mocker, default_conf, tmp_path,
|
|||||||
assert get_historic_ohlcv_mock.call_count == 0
|
assert get_historic_ohlcv_mock.call_count == 0
|
||||||
|
|
||||||
# Verify the log message indicating parallel method was used (line 315-316)
|
# Verify the log message indicating parallel method was used (line 315-316)
|
||||||
assert log_has("Downloaded data for TEST/BTC with length 3. Parallel Method.", caplog)
|
assert log_has("Downloaded data for TEST/BTC, 5m, spot with length 3. Parallel Method.", caplog)
|
||||||
|
|
||||||
# Verify data was stored
|
# Verify data was stored
|
||||||
assert data_handler_mock.ohlcv_store.call_count == 1
|
assert data_handler_mock.ohlcv_store.call_count == 1
|
||||||
|
|||||||
Reference in New Issue
Block a user