Merge pull request #10210 from stash86/bt-metrics

modify MeasureTime log message to include time limit and 's' suffix
This commit is contained in:
Matthias
2024-05-14 18:23:50 +02:00
committed by GitHub

View File

@@ -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."
)