From bef3dd9e972bf25c63fefc0dbcfd5875a8a1ea29 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 5 Jul 2024 13:32:03 -0400 Subject: [PATCH] Another tweak to REPL entry `.pdb()` headers --- tractor/devx/_debug.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tractor/devx/_debug.py b/tractor/devx/_debug.py index 113371d..ae1c46d 100644 --- a/tractor/devx/_debug.py +++ b/tractor/devx/_debug.py @@ -1552,7 +1552,7 @@ def shield_sigint_handler( log.devx('exiting SIGINT') -_pause_msg: str = 'Attaching to pdb REPL in actor' +_pause_msg: str = 'Opening a pdb REPL in paused actor' class DebugRequestError(RuntimeError): @@ -2050,9 +2050,8 @@ def _set_trace( # root here? Bo log.pdb( f'{_pause_msg}\n' - # '|\n' f'>(\n' - f' |_ {task} @ {actor.uid}\n' + f'|_ {task} @ {actor.uid}\n' # ^-TODO-^ more compact pformating? # -[ ] make an `Actor.__repr()__` # -[ ] should we use `log.pformat_task_uid()`? @@ -2523,7 +2522,7 @@ async def breakpoint( _crash_msg: str = ( - 'Attaching to pdb REPL in crashed actor' + 'Opening a pdb REPL in crashed actor' ) @@ -2551,11 +2550,9 @@ def _post_mortem( # here! Bo log.pdb( f'{_crash_msg}\n' - # '|\n' f'x>(\n' - f' |_ {current_task()} @ {actor.uid}\n' + f' |_ {current_task()} @ {actor.uid}\n' - # f'|_ @{actor.uid}\n' # TODO: make an `Actor.__repr()__` # f'|_ {current_task()} @ {actor.name}\n' )