Skip to content

Commit

Permalink
src/runner.py: log exception explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
szobov committed Sep 17, 2024
1 parent 3cd54d3 commit 1d33b56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ def exception_handler(future: Future):
exception = future.exception()
if exception is None:
return
logger.exception("Exception in future", process_name=process_name)
logger.exception(
"Exception in future", process_name=process_name, exception=exception
)

future.add_done_callback(exception_handler)

Expand Down

0 comments on commit 1d33b56

Please sign in to comment.