Skip to content

Commit

Permalink
Skip logging routes with logs disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
dowlandaiello committed Oct 14, 2024
1 parent ff18c79 commit c27a4fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ def log_route(
Writes a log to the standard logger and to the log file of a route.
"""

if not route.logs_enabled:
return

def asset_balance_prefix(leg: Leg, asset: str) -> Optional[str]:
balance_resp_asset = try_multiple_clients(
self.clients[leg.backend.chain_id],
Expand Down

0 comments on commit c27a4fc

Please sign in to comment.