From 75965cd50f842c7013c34f800fa2c94b1f579a84 Mon Sep 17 00:00:00 2001 From: Stefano Ariestasia Date: Tue, 14 May 2024 16:20:20 +0900 Subject: [PATCH] modify MeasureTime log message to include time limit and 's' suffix --- freqtrade/freqtradebot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 43e7996d7..401de5147 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -174,8 +174,8 @@ class FreqtradeBot(LoggingMixin): def log_took_too_long(duration: float, time_limit: float): logger.warning( - f"Strategy analysis took {duration:.2f}, which is 25% of the timeframe. " - "This can lead to delayed orders and missed signals." + f"Strategy analysis took {duration:.2f}s, more than 25% of the timeframe " + f"({time_limit:.2f}s). This can lead to delayed orders and missed signals." "Consider either reducing the amount of work your strategy performs " "or reduce the amount of pairs in the Pairlist." )