Show more functiony syntax in ctx-cancelled log msgs

ipc_failure_while_streaming
Tyler Goodlet 2023-01-08 13:19:46 -05:00
parent ddf3d0d1b3
commit df01294bb2
1 changed files with 2 additions and 2 deletions

View File

@ -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}'
)