Skip to content

Commit 56a22c3

Browse files
committed
indexer: print more information on exception
1 parent 49640e2 commit 56a22c3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ Fixed
99

1010
- Don't store pending cursor to avoid crashing on restart.
1111

12+
Changed
13+
^^^^^^^
14+
15+
- Print more detailed information on exceptions.
16+
1217

1318
Apibara Python SDK 0.7.0 (2023-07-08)
1419
--------------------------------------

src/apibara/indexer/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ async def _do_run(self, indexer: Indexer, ctx: Optional[UserContext] = None):
111111
try:
112112
await self._connect_and_stream(indexer, ctx)
113113
except Exception as exc:
114-
logger.debug(f"indexer exception {exc}")
114+
logger.exception(f"indexer exception")
115115
self._retry_count += 1
116116
reconnect = await indexer.handle_reconnect(exc, self._retry_count)
117117

0 commit comments

Comments
 (0)