chore: improve log level to warning when falling back to API

This commit is contained in:
Meng Xiangzhuo
2024-11-15 12:08:50 +08:00
parent 19f96d60e3
commit 0f53dc1b7b

View File

@@ -93,7 +93,11 @@ async def download_archive_ohlcv(
f"Downloaded data for {pair} from https://data.binance.vision with length {len(df)}."
)
except Exception as e:
logger.debug("An exception occurred", exc_info=e)
logger.warning(
"An exception occurred during fast download from Binance, falling back to"
"the slower REST API, this can take more time.",
exc_info=e,
)
df = DataFrame()
if not df.empty: