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-codesubint_spawner_backend
parent
06ff2dd5f2
commit
23677f8a3c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue