From df01294bb2235b6a3b568f7c9533dbf8c33e6644 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 8 Jan 2023 13:19:46 -0500 Subject: [PATCH] Show more functiony syntax in ctx-cancelled log msgs --- tractor/_runtime.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tractor/_runtime.py b/tractor/_runtime.py index 1dcd865..707b9dd 100644 --- a/tractor/_runtime.py +++ b/tractor/_runtime.py @@ -228,11 +228,11 @@ async def _invoke( fname = func.__name__ if ctx._cancel_called: - msg = f'{fname} cancelled itself' + msg = f'`{fname}()` cancelled itself' elif cs.cancel_called: msg = ( - f'{fname} was remotely cancelled by its caller ' + f'`{fname}()` was remotely cancelled by its caller ' f'{ctx.chan.uid}' )