Skip to content

Commit

Permalink
Avoid excessive logging output
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Oct 25, 2024
1 parent 29de2b0 commit e6dfc36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tradeexecutor/strategy/pandas_trader/decision_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ def wait_for_universe_data_availability_jsonl(
max_diff=max_diff,
)

# Avoid excessive logging output if > 10 pairs
last_timestamps_log = last_timestamps_log[0:400]

logger.info("Timestamp wanted %s, Completed pairs: %d, Incompleted pairs: %d, last candles %s, diff is %s, sleeping %s",
wanted_timestamp,
len(completed_pairs),
Expand Down

0 comments on commit e6dfc36

Please sign in to comment.