You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ kedro run
[07/02/24 14:51:01] INFO Using `conf/logging.yml` as logging configuration. You can change __init__.py:249
this by setting the KEDRO_LOGGING_CONFIG environment variable
accordingly.
WARNING /Users/juan_cano/Projects/QuantumBlackLabs/workshop-from-zero-to-mlo warnings.py:110
ps/.venv/lib/python3.11/site-packages/kedro/framework/cli/catalog.py
:15: LogfireNotConfiguredWarning: No logs or spans will be created
until `logfire.configure()` has been called. Set the environment
variable LOGFIRE_IGNORE_NO_CONFIG=1 or add ignore_no_config=true in
pyproject.toml to suppress this warning.
from kedro.framework.project import pipelines, settings
Logfire project URL: https://logfire.pydantic.dev/astrojuanlu/test-simple
[07/02/24 14:51:03] INFO Kedro project spaceflights-pandas-viz session.py:324
Apart from that LOGFIRE_IGNORE_NO_CONFIG, is there a better way to achieve this?
Your Environment
Kedro version used (pip show kedro or kedro -V): 0.19.6
Python version used (python -V): 3.11.9
Operating system and version: macOS Sonoma 14.5
The text was updated successfully, but these errors were encountered:
Description
I was trying to use Logfire in Kedro, and it mostly worked. However, the results aren't optimal.
Context
Steps to Reproduce
spaceflights
projectlogfire.configure()
insettings.py
(for lack of a better place)logfire
handler to the logging. For example:Expected Result
The logs should display flawlessly on the Logfire web UI.
Actual Result
Note
The shortcodes shouldn't leak any longer, see below
With this configuration, the shortcodes for rich coloring "leak" onto the logs:
(notice the
[dark_orange]
shortcodes)If I disable the
rich
handler inlogging.yml
, the CLI output changes but the result on Logfire UI is the same.And finally, I tried
rich.uninstall()
but it turns outlogfire
depends onrich
🙃On top of that, I observe this big fat warning:
Apart from that
LOGFIRE_IGNORE_NO_CONFIG
, is there a better way to achieve this?Your Environment
pip show kedro
orkedro -V
): 0.19.6python -V
): 3.11.9The text was updated successfully, but these errors were encountered: