From b5239f06aefe4f92e9a3801cdd71bccb1193fad3 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 20 Apr 2024 08:26:43 +0200 Subject: [PATCH] Improve log formatting --- freqtrade/exchange/exchange_ws.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/freqtrade/exchange/exchange_ws.py b/freqtrade/exchange/exchange_ws.py index ec9d5a29b..f21d8c7bb 100644 --- a/freqtrade/exchange/exchange_ws.py +++ b/freqtrade/exchange/exchange_ws.py @@ -12,7 +12,7 @@ from freqtrade.constants import Config, PairWithTimeframe from freqtrade.enums.candletype import CandleType from freqtrade.exchange.exchange import timeframe_to_seconds from freqtrade.exchange.types import OHLCVResponse -from freqtrade.util.datetime_helpers import dt_from_ts +from freqtrade.util import format_ms_time logger = logging.getLogger(__name__) @@ -152,8 +152,8 @@ class ExchangeWS: drop_hint = (candles[-1][0] // 1000) >= candle_date logger.info( f"watch result for {pair}, {timeframe} with length {len(candles)}, " - f"{dt_from_ts(candles[-1][0] // 1000)}, " - f"lref={dt_from_ts(refresh_date)}, " - f"candle_date={dt_from_ts(candle_date)}, {drop_hint=}" + f"{format_ms_time(candles[-1][0] // 1000)}, " + f"lref={format_ms_time(refresh_date)}, " + f"candle_date={format_ms_time(candle_date)}, {drop_hint=}" ) return pair, timeframe, candle_type, candles, drop_hint