Open astrojuanlu opened 3 months ago
The shortcodes are because of #3626, fixed by #3682 (thanks for the heads-up @noklam)
My question on LogfireNotConfiguredWarning
still stands
FTR Logfire is leaving beta soon https://pydantic.notion.site/Pydantic-Logfire-Pricing-f719ee768d10457f970f78eedbff976e
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
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.9