Improve message formatting
This commit is contained in:
parent
f6a7e6b785
commit
e49b3ef051
@ -215,8 +215,8 @@ def _download_pair_history(pair: str, *,
|
||||
candle_type=candle_type,
|
||||
prepend=prepend)
|
||||
|
||||
logger.info(f'Download history data for "{pair}" ({process}), timeframe: {timeframe}, '
|
||||
f'candle type: {candle_type} and store in {datadir}.'
|
||||
logger.info(f'({process}) - Download history data for "{pair}", {timeframe}, '
|
||||
f'{candle_type} and store in {datadir}.'
|
||||
f'From {format_ms_time(since_ms) if since_ms else "start"} to '
|
||||
f'{format_ms_time(until_ms) if until_ms else "now"}'
|
||||
)
|
||||
|
@ -149,8 +149,8 @@ def test_load_data_with_new_pair_1min(ohlcv_history_list, mocker, caplog,
|
||||
load_pair_history(datadir=tmpdir1, timeframe='1m', pair='MEME/BTC', candle_type=candle_type)
|
||||
assert file.is_file()
|
||||
assert log_has_re(
|
||||
r'Download history data for pair: "MEME/BTC" \(0/1\), timeframe: 1m, '
|
||||
r'candle type: spot and store in .*', caplog
|
||||
r'\(0/1\) - Download history data for "MEME/BTC", 1m, '
|
||||
r'spot and store in .*', caplog
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user