From 2fba1b2471394bfc343d89237e4c7cce1c529816 Mon Sep 17 00:00:00 2001 From: Dowland Aiello Date: Wed, 24 Jul 2024 09:51:23 -0700 Subject: [PATCH] Print full traceback for failed arbs. --- src/strategies/naive.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/strategies/naive.py b/src/strategies/naive.py index aabd71ffb..77296bdb5 100644 --- a/src/strategies/naive.py +++ b/src/strategies/naive.py @@ -3,6 +3,7 @@ of hops using all available providers. """ +import traceback from itertools import groupby import asyncio import random @@ -150,8 +151,13 @@ async def strategy( r.status = Status.EXECUTED ctx.log_route(r, "info", "Executed route successfully", []) - except Exception as e: - ctx.log_route(r, "error", "Arb failed %s: %s", [fmt_route(route), e]) + except Exception: + ctx.log_route( + r, + "error", + "Arb failed %s: %s", + [fmt_route(route), traceback.format_exc()], + ) r.status = Status.FAILED