From 3f6d4d6af4d8923c97017f1ec4b98ce8cf306e32 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 5 Oct 2021 17:03:55 -0400 Subject: [PATCH] Don't log.error if it was intentional --- tractor/_actor.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tractor/_actor.py b/tractor/_actor.py index dcbe541..2e470b4 100644 --- a/tractor/_actor.py +++ b/tractor/_actor.py @@ -195,8 +195,6 @@ async def _invoke( if not is_multi_cancelled(err): - log.exception("Actor crashed:") - # TODO: maybe we'll want different "levels" of debugging # eventualy such as ('app', 'supervisory', 'runtime') ? @@ -218,8 +216,8 @@ async def _invoke( entered_debug = await _debug._maybe_enter_pm(err) - if not entered_debug: - log.exception("Actor crashed:") + if not entered_debug: + log.exception("Actor crashed:") # always ship errors back to caller err_msg = pack_error(err, tb=tb)