Skip to content

Commit

Permalink
Print full traceback for main exceptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dowlandaiello committed Jul 24, 2024
1 parent 429f91d commit e83e396
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Implements a command-line interface for running arbitrage strategies.
"""

import traceback
import asyncio
from multiprocessing import Process
import json
Expand Down Expand Up @@ -426,8 +427,10 @@ async def event_loop() -> None:
try:
async with asyncio.timeout(args.poll_interval):
await sched.poll()
except Exception as e:
logger.info("Arbitrage round failed: %s", e)
except Exception:
logger.info(
"Arbitrage round failed: %s", traceback.format_exc()
)

continue

Expand Down

0 comments on commit e83e396

Please sign in to comment.