From 3a31c9d3388b28277bc9af7f3aca22217431072a Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 26 Sep 2023 10:32:01 -0400 Subject: [PATCH] to_asyncio: mask error logging, not sure it adds that much --- tractor/to_asyncio.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tractor/to_asyncio.py b/tractor/to_asyncio.py index 788181e6..cd10ee6d 100644 --- a/tractor/to_asyncio.py +++ b/tractor/to_asyncio.py @@ -216,7 +216,7 @@ async def wait_on_coro_final_result( try: result = await coro except BaseException as aio_err: - log.exception('asyncio task errored') + # log.exception('asyncio task errored:') chan._aio_err = aio_err raise @@ -300,7 +300,7 @@ def cancel_trio(task: asyncio.Task) -> None: elif task_err is None: assert aio_err aio_err.with_traceback(aio_err.__traceback__) - log.error('infected task errorred') + # log.error('infected task errorred') # XXX: alway cancel the scope on error # in case the trio task is blocking @@ -356,7 +356,7 @@ def maybe_raise_aio_err( # relay cancel through to called ``asyncio`` task assert chan._aio_task chan._aio_task.cancel( - msg=f'the `trio` caller task was cancelled: {trio_task.name}' + msg=f'`trio`-side caller task cancelled: {trio_task.name}' ) raise @@ -366,7 +366,7 @@ def maybe_raise_aio_err( trio.ClosedResourceError, # trio.BrokenResourceError, ): - aio_err = chan._aio_err + aio_err: BaseException = chan._aio_err if ( task.cancelled() and type(aio_err) is CancelledError