Skip to content

Commit 652b324

Browse files
committed
Lower noisy sleep and cache logs to debug
1 parent f926a97 commit 652b324

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lumibot/strategies/strategy_executor.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
from apscheduler.jobstores.memory import MemoryJobStore
1414
from apscheduler.schedulers.background import BackgroundScheduler
1515
from apscheduler.triggers.cron import CronTrigger
16-
from termcolor import colored
17-
1816
from lumibot.constants import LUMIBOT_DEFAULT_PYTZ
1917
from lumibot.entities import Asset, Order
2018
from lumibot.entities import Asset
@@ -1166,7 +1164,7 @@ def _strategy_sleep(self):
11661164
# For live trading, stop when market closes
11671165
return False
11681166

1169-
self.strategy.log_message(colored(f"Sleeping for {strategy_sleeptime} seconds", color="blue"))
1167+
self.strategy.logger.debug("Sleeping for %s seconds", strategy_sleeptime)
11701168

11711169
# Run process orders at the market close time first (if not continuous market)
11721170
if not is_continuous_market:

0 commit comments

Comments
 (0)