From 2f7de85ca714654ebee0b5ee2f3e35171f036e40 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 12 Sep 2020 11:41:17 -0400 Subject: [PATCH] Log error --- tractor/to_asyncio.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tractor/to_asyncio.py b/tractor/to_asyncio.py index 0f22300..f9cdada 100644 --- a/tractor/to_asyncio.py +++ b/tractor/to_asyncio.py @@ -94,6 +94,8 @@ async def run_task( """ nonlocal err err = task.exception() + if err: + log.exception("asyncio task errorred:") cancel_scope.cancel() task.add_done_callback(cancel_trio)