From 12c346d8466950e229ad69f6052fadb69baffe77 Mon Sep 17 00:00:00 2001 From: goodboy Date: Wed, 4 Feb 2026 18:22:02 -0500 Subject: [PATCH] .ui._app: enable console logging in `_async_main()` Now we're actualy emitting colored-logs (again?), not sure how this got borked but maybe it's due to `tractor.log`'s new changes? (this commit msg was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code --- piker/ui/_app.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/piker/ui/_app.py b/piker/ui/_app.py index f078163d..e3fb436d 100644 --- a/piker/ui/_app.py +++ b/piker/ui/_app.py @@ -33,7 +33,10 @@ from . import _search from ..accounting import unpack_fqme from ..data._symcache import open_symcache from ..data.feed import install_brokerd_search -from ..log import get_logger +from ..log import ( + get_logger, + get_console_log, +) from ..service import maybe_spawn_brokerd from ._exec import run_qtractor @@ -87,6 +90,13 @@ async def _async_main( Provision the "main" widget with initial symbol data and root nursery. """ + # enable chart's console logging + if loglevel: + get_console_log( + level=loglevel, + name=__name__, + ) + # set as singleton _chart._godw = main_widget