Skip to content

Commit

Permalink
Show more functiony syntax in ctx-cancelled log msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jan 8, 2023
1 parent 95ee5a5 commit 3d926d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tractor/_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
)

Expand Down

0 comments on commit 3d926d2

Please sign in to comment.