piker/piker/service
Gud Boi 68a87ca45f Adjust `tractor.log` API compat
Update logging helpers to use new `tractor.log` API with `pkg_name=`
kwarg and add optional `tractor` "root logger" enabling.

Deats,
- change `piker.log.get_logger()` to use `pkg_name=` vs `_root_name=`.
- add `**tractor_log_kwargs` passthrough to both wrapper fns.
- add `with_tractor_log: bool` toggle to `.get_console_log()`.
- strip `'piker.'` prefix from logger names when present to avoid
  newly added `tractor.get_logger()` warnings.

Surroundingly,
- add `subsys` import to `.clearing._ems` for log name
- update all `get_console_log()` calls to use `level=` kwarg
- add assertion checks for logger names in `_setup_persistent_emsd()`

Additionally,,
- fix all type annotations: `str|None` vs `str | None`.
- add multiline style to conditional in `.cli.services()`.
- drop unused `Optional` import from `._actor_runtime`.
- drop a few "blank lines" in various function sigs.

Warning: this patch will require an equivalent dev-commit at the time of
writing in `tractor` itself, for now the `piker_pin` branch should be
sufficient to avoid breakage 🙏!

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code

k
2026-02-06 00:33:05 -05:00
..
__init__.py Drop `__all__` import style from `.services` 2024-01-04 10:05:53 -05:00
_actor_runtime.py Adjust `tractor.log` API compat 2026-02-06 00:33:05 -05:00
_ahab.py Ignore `ContextCancelled`s from non-mngr requests 2024-01-04 10:06:42 -05:00
_daemon.py Port `.cli` & `.service` to latest `tractor` registry APIs 2026-01-06 22:27:58 -05:00
_mngr.py Port `.cli` & `.service` to latest `tractor` registry APIs 2026-01-06 22:27:58 -05:00
_registry.py Port `.cli` & `.service` to latest `tractor` registry APIs 2026-01-06 22:27:58 -05:00
_util.py Use a single log for entire `.service` subsys 2023-05-09 14:49:26 -04:00
elastic.py Reimplement marketstore and elasticsearch daemons 2023-05-23 14:16:02 -04:00
marketstore.py Add marketstore client as storage-backend module 2023-06-27 13:41:47 -04:00