Skip to content

Commit

Permalink
remove logging of crash events
Browse files Browse the repository at this point in the history
  • Loading branch information
brettelliot committed Dec 5, 2024
1 parent 6958933 commit 4f5c7f9
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lumibot/example_strategies/drift_rebalancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,4 @@ def on_trading_iteration(self) -> None:

self.drift_df = self.drift_rebalancer_logic.calculate(target_weights=self.target_weights)
self.drift_rebalancer_logic.rebalance(drift_df=self.drift_df)

def on_abrupt_closing(self):
self.cancel_open_orders()
self.logger.error(f"on_abrupt_closing called")

def on_bot_crash(self, error):
self.cancel_open_orders()
self.logger.error(f"on_bot_crash called with error: {error}")



0 comments on commit 4f5c7f9

Please sign in to comment.