Skip to content

Commit

Permalink
Merge pull request #10210 from stash86/bt-metrics
Browse files Browse the repository at this point in the history
modify MeasureTime log message to include time limit and 's' suffix
  • Loading branch information
xmatthias committed May 14, 2024
2 parents b1fd79d + 75965cd commit 3b00363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freqtrade/freqtradebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ def update():

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."
)
Expand Down

0 comments on commit 3b00363

Please sign in to comment.