piker/piker
Gud Boi 760570c01b Pass `loglevel` down through `.data` callstack
Add `loglevel` param propagation across the data feed and sampling
subsystems to enable proper console log setup in downstream (distibuted)
subactor tasks. This ensures sampler and history-mgmt tasks receive the
same loglevel as their parent `.data.feed` tasks.

Deats,
- add `loglevel: str|None` param to `register_with_sampler()`,
  `maybe_open_samplerd()`, and `open_sample_stream()`.
- pass `loglevel` through to `get_console_log()` in
  `register_with_sampler()` with fallback to actor `loglevel`.
- use `partial()` in `allocate_persistent_feed()` to pass
  `loglevel` to `manage_history()` at task-start.
- add `loglevel` param to `manage_history()` with default
  `'warning'` and pass through to `open_sample_stream()` from there.
- capture `loglevel` var in `brokers.cli.search()` and pass to
  `symbol_search()` call.

Also,
- drop blank lines in fn sigs for consistency with piker style.
- add debug bp in `open_feed()` when `loglevel != 'info'`.

(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-22 18:18:06 -05:00
..
accounting Use `__name__` for loggers across most sub-mods 2026-02-22 18:18:06 -05:00
brokers Pass `loglevel` down through `.data` callstack 2026-02-22 18:18:06 -05:00
clearing Enable console via `.clearing._ems.open_brokerd_dialog()` 2026-02-22 18:18:06 -05:00
cli Use `__name__` for loggers across `.ib` sub-mods 2026-02-22 18:18:06 -05:00
data Pass `loglevel` down through `.data` callstack 2026-02-22 18:18:06 -05:00
fsp .fsp._engine: enable console logging in `cascade()` 2026-02-22 18:18:06 -05:00
service Use `__name__` for loggers across most sub-mods 2026-02-22 18:18:06 -05:00
storage Replace assert with warn for no-gaps in `.storage.cli` 2026-02-20 16:33:53 -05:00
testing Pass a config `tmp_dir: Path` to the runtime when testing 2023-03-09 15:37:43 -05:00
toolz Delegate `.toolz.open_crash_handler()` to `tractor.devx` 2024-01-16 10:26:38 -05:00
tsp Pass `loglevel` down through `.data` callstack 2026-02-22 18:18:06 -05:00
ui Add order-cancel debugging and multiline kbd logs 2026-02-22 18:18:06 -05:00
watchlists Add license headers to pertinent files 2020-11-06 12:23:14 -05:00
__init__.py Start `piker.service` sub-package 2023-03-09 15:37:42 -05:00
_cacheables.py Move `._cacheables.open_cached_client()` into `.brokers` pkg mod 2023-06-27 13:41:47 -04:00
calc.py Lul, adhere to returning `str`s in `humanize()` 2022-01-25 07:57:01 -05:00
config.py `.config.get_app_dir()`: link to `click`'s orig impl on GH 2026-01-06 19:33:23 -05:00
log.py Auto-enable `tractor` logging when runtime active 2026-02-22 18:18:06 -05:00
types.py Point `.types.Struct` to `tractor.msg.pretty_struct` 2026-02-22 18:18:06 -05:00