diff --git a/tractor/_portal.py b/tractor/_portal.py index 04f613e..8148a5d 100644 --- a/tractor/_portal.py +++ b/tractor/_portal.py @@ -257,7 +257,7 @@ class Portal: return False reminfo: str = ( - f'{self.channel.uid}\n' + f'`Portal.cancel_actor()` => {self.channel.uid}\n' f' |_{chan}\n' ) log.cancel( @@ -949,9 +949,13 @@ class Portal: # CASE 1 else: + outcome_str: str = ctx.repr_outcome( + show_error_fields=True, + # type_only=True, + ) log.cancel( - f'Context terminated due to local scope error:\n' - f'{etype.__name__}\n' + f'Context terminated due to local scope error:\n\n' + f'{ctx.chan.uid} => {outcome_str}\n' ) # FINALLY, remove the context from runtime tracking and