From 23677f8a3ceb34a9641e78cd325e8316abc2c02f Mon Sep 17 00:00:00 2001 From: goodboy Date: Mon, 13 Apr 2026 22:47:15 -0400 Subject: [PATCH] Use distinct startup report for registrar vs client Set `header` to "Contacting existing registry" for non-registrar actors and "Opening new registry" for registrars, so the boot log reflects the actual role. (this commit msg was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code --- tractor/_root.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tractor/_root.py b/tractor/_root.py index 02757c32..9b58523d 100644 --- a/tractor/_root.py +++ b/tractor/_root.py @@ -432,6 +432,8 @@ async def open_root_actor( ) ) + header: str = '-> Contacting existing registry @ ' + # ------ REGISTRAR ------ # create a new "registry providing" root-actor instance. # @@ -469,6 +471,7 @@ async def open_root_actor( # `tractor.to_asyncio.run_as_asyncio_guest()` and NOT # `.trio.run()`. actor._infected_aio = _state._runtime_vars['_is_infected_aio'] + header: str = '-> Opening new registry @ ' # Start up main task set via core actor-runtime nurseries. try: @@ -480,7 +483,7 @@ async def open_root_actor( report: str = f'Starting actor-runtime for {actor.aid.reprol()!r}\n' if reg_addrs := actor.registry_addrs: report += ( - '-> Opening new registry @ ' + header + '\n'.join( f'{addr}' for addr in reg_addrs