From ab2664da704c23a3a0c220dfa933320396b1b706 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 16 Oct 2023 15:46:21 -0400 Subject: [PATCH] Runtime level log on debug REPL exits --- tractor/_runtime.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tractor/_runtime.py b/tractor/_runtime.py index bd62644..881fe53 100644 --- a/tractor/_runtime.py +++ b/tractor/_runtime.py @@ -74,7 +74,7 @@ log = get_logger('tractor') async def _invoke( - actor: 'Actor', + actor: Actor, cid: str, chan: Channel, func: Callable, @@ -1419,6 +1419,8 @@ async def async_main( # something silly like the wrong socket-address # passed via a config or CLI Bo entered_debug = await _debug._maybe_enter_pm(oserr) + if entered_debug: + log.runtime('Exited debug REPL..') raise accept_addrs: list[tuple[str, int]] = actor.accept_addrs