.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-codeorder_line_cancel_nowork_debugging
parent
5af7a82340
commit
12c346d846
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue