piker/piker
Gud Boi 2b93d858aa Pass `loglevel` down through `.ui` graphics tasks
Add `loglevel` propagation to UI graphics tasks and sampler stream
opens to enable proper console logging in chart update loops. This
ensures the graphics and FSP subsystems receive the same loglevel
as their parent and/or sibling UI-actor tasks.

Deats,
- add `loglevel` param to `graphics_update_loop()` and
  `increment_history_view()` with default `'warning'`.
- pass `loglevel` to `open_sample_stream()` calls in both fns.
- use `partial()` to pass `loglevel` through to `nurse.start_soon()`
  calls in `display_symbol_data()` and `graphics_update_loop()`.

Also logging, doc-strs, and code-style tweaks,
- change `print()` -> `log.debug()` for hidden-chart and
  interaction-pause msgs in graphics loop.
- change `log.info()` -> `log.debug()` for resize events in
  `GodWidget` and `MainWindow`.
- add multiline style to resize log msg in `GodWidget`.
- add docstring to `MainWindow.on_focus_change()`.
- moar union type annot adjustments.
- switch to explicit kwarg `period_s=` for `open_sample_stream()`
  in `increment_history_view()`.
- multiline style for `names` list in `open_fsp_actor_cluster()`.
- change `count=2` -> `count=len(names)` in
  `open_fsp_actor_cluster()`.
- add TODO about using `.experimental` for cluster import (once that
  get's patched into upstream `tractor`).
- multiline style for `or` in `FspAdmin.start_engine_task()`.
- comment-out unused `brokernames` in `ui.cli.chart()`.
- add commented breakpoint in `ui.cli.chart()`.
- fix docstring style in `OrderMode.on_submit()`.

(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 Pass `loglevel` to `cascade()` feed/sampler opens 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 Pass `loglevel` down through `.ui` graphics tasks 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