From 1084ca99bf02123aab2b45fad6705929e99bb752 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 30 Jun 2021 08:45:43 -0400 Subject: [PATCH] Go back to only logging tbs on no debugger --- tractor/_root.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tractor/_root.py b/tractor/_root.py index 6013d50..b01daef 100644 --- a/tractor/_root.py +++ b/tractor/_root.py @@ -166,8 +166,11 @@ async def open_root_actor( yield actor except (Exception, trio.MultiError) as err: - logger.exception("Actor crashed:") - await _debug._maybe_enter_pm(err) + # with trio.CancelScope(shield=True): + entered = await _debug._maybe_enter_pm(err) + + if not entered: + logger.exception("Root actor crashed:") # always re-raise raise