Skip to content

Commit

Permalink
Log error
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Sep 12, 2020
1 parent a2233fa commit 48d9c6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tractor/to_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def cancel_trio(task):
"""
nonlocal err
err = task.exception()
if err:
log.exception("asyncio task errorred:")
cancel_scope.cancel()

task.add_done_callback(cancel_trio)
Expand Down

0 comments on commit 48d9c6e

Please sign in to comment.