piker/piker/data
Gud Boi b6d60d348a 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-11 19:56:14 -05:00
..
__init__.py Move `dedupe()` to `.data.tsp` (so it has pals) 2023-12-11 16:24:27 -05:00
_formatters.py Expose "bar gap margin" as `.ui._formatters.BGM: float` 2023-12-28 10:37:20 -05:00
_m4.py Add subsys log to new `.data._util` 2023-05-09 14:49:26 -04:00
_pathops.py .data._pathops: drop profiler imports, fix some naming to appease `ruff` 2023-07-20 15:27:22 -04:00
_sampling.py Pass `loglevel` down through `.data` callstack 2026-02-11 19:56:14 -05:00
_sharedmem.py For claude, ignore no runtime for offline shm reading 2026-01-29 02:49:25 -05:00
_source.py Drop `bar_wap` from default ohlc field set 2023-06-27 13:41:47 -04:00
_symcache.py `data._symcache`, impl a summary `.__repr__()`, avoids `Asset` causality issues 2026-01-06 19:33:23 -05:00
_util.py Adjust `tractor.log` API compat 2026-02-06 10:35:01 -05:00
_web_bs.py Add timeout + shielding to `NoBsWs` reconnect logic 2026-02-04 20:09:35 -05:00
feed.py Pass `loglevel` down through `.data` callstack 2026-02-11 19:56:14 -05:00
flows.py Teensie `piker.data` styling tweaks 2026-01-06 19:33:23 -05:00
ingest.py Add subsys log to new `.data._util` 2023-05-09 14:49:26 -04:00
ticktools.py .data.ticktools: add reverse flag, better docs 2023-06-27 15:47:05 -04:00
validate.py Teensie `piker.data` styling tweaks 2026-01-06 19:33:23 -05:00