From 13c9eadc8f0b9761d4b27eb46ba48ae54b7345c9 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 28 Jan 2023 18:42:31 -0500 Subject: [PATCH] Move result log msg up and drop else block --- tractor/_portal.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tractor/_portal.py b/tractor/_portal.py index 5546949..05504bd 100644 --- a/tractor/_portal.py +++ b/tractor/_portal.py @@ -497,6 +497,10 @@ class Portal: f'actor: {uid}' ) result = await ctx.result() + log.runtime( + f'Context {fn_name} returned ' + f'value from callee `{result}`' + ) # though it should be impossible for any tasks # operating *in* this scope to have survived @@ -518,12 +522,6 @@ class Portal: f'task:{cid}\n' f'actor:{uid}' ) - else: - log.runtime( - f'Context {fn_name} returned ' - f'value from callee `{result}`' - ) - # XXX: (MEGA IMPORTANT) if this is a root opened process we # wait for any immediate child in debug before popping the # context from the runtime msg loop otherwise inside