piker/piker/service
Gud Boi 9a97c477e2 Use `name=__name__` for logs throughout `.service`
Change all `.service` sub-modules to use `get_logger(name=__name__)`
for per-submod instances vs a shared `._util.log`.

Deats,
- import `get_logger()` and `get_console_log()` from top-level
  `piker.log` instead of `._util` for all.
- drop `log` and `get_console_log()` partial from `._util`.
- add `name=subsys` kwarg to `get_console_log()` call in
  `_actor_runtime.maybe_open_pikerd()`.
- add `name='piker.service'` to `get_console_log()` in
  `_ahab.open_ahabd()`.
- change default `loglevel` from `None` to `'cancel'` in
  `_ahab.open_ahabd()`.
- add sanity check: `assert log.name == 'piker.service'` in
  `_daemon.maybe_spawn_daemon()`.
- change `print()` -> `log.info()` in `_registry.find_service()`.
- drop stray `from piker.service._util import log` import in
  `brokers._daemon.spawn_brokerd()`.

Styling/cleanups,
- drop blank lines from various fn sigs.
- do more sin-ws union type annots.
- add more multiline style to `or` expressions in `_actor_runtime` and
  `_registry`.
- update `._util` docstring with TODO about `import`-time console
  log setup.
- add TODO comments in `_registry` about UDS registry support.
- use `.aid.uid` from actor in `_registry.open_registry()`.
- add intermediate var `reg_addrs` in `_registry.open_registry()` (bc
  i was tracing rtvs value issues in `tractor`).
- add `pformat` import to `.elastic` (code path is currently
  not used but figured might as well appease the linter..)

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
2026-02-23 12:22:48 -05:00
..
__init__.py Drop `__all__` import style from `.services` 2024-01-04 10:05:53 -05:00
_actor_runtime.py Use `name=__name__` for logs throughout `.service` 2026-02-23 12:22:48 -05:00
_ahab.py Use `name=__name__` for logs throughout `.service` 2026-02-23 12:22:48 -05:00
_daemon.py Use `name=__name__` for logs throughout `.service` 2026-02-23 12:22:48 -05:00
_mngr.py Use `name=__name__` for logs throughout `.service` 2026-02-23 12:22:48 -05:00
_registry.py Use `name=__name__` for logs throughout `.service` 2026-02-23 12:22:48 -05:00
_util.py Use `name=__name__` for logs throughout `.service` 2026-02-23 12:22:48 -05:00
elastic.py Use `name=__name__` for logs throughout `.service` 2026-02-23 12:22:48 -05:00
marketstore.py Use `name=__name__` for logs throughout `.service` 2026-02-23 12:22:48 -05:00