Alexey Gravanov
07/26/2024, 7:16 AMJuan Luis
07/26/2024, 9:44 AMAlexey Gravanov
07/26/2024, 11:22 AMRashida Kanchwala
07/26/2024, 2:18 PMAlexey Gravanov
07/26/2024, 2:41 PMNok Lam Chan
07/26/2024, 2:43 PMNok Lam Chan
07/26/2024, 2:43 PMNok Lam Chan
07/26/2024, 2:43 PMlogging.yml
, it looks pretty outdated so I think that's the root cause.Nok Lam Chan
07/26/2024, 2:44 PMlogging.yml
?Nok Lam Chan
07/26/2024, 2:45 PMconf/logging.yml
, otherwise you need to specify environment variable KEDRO_LOGGING_CONFIG
to point to the config file (or it used the default)Nok Lam Chan
07/26/2024, 2:45 PMlogging.yml
here https://github.com/kedro-org/kedro-starters/blob/main/spaceflights-pandas/%7B%7B%20cookiecutter.repo_name%20%7D%7D/conf/logging.ymlAlexey Gravanov
07/26/2024, 3:26 PMconf/logging.yml
• i would expect behavior like in 0.18.14, all warnings should be "richified"
• hm, what makes it "pretty outdated"? that I'm not listing every and all packages explicitly? shouldn't it fall back to the root one in this case? why would warning from kedro-viz be richified and the one from kedro and xgboost - not?Nok Lam Chan
07/26/2024, 3:32 PMkedro
2. logging.yml
that override the default
loggers:
anyconfig:
level: WARNING
handlers: [rich, info_file_handler, error_file_handler]
propagate: noI see this in your logging.yml and this settings is <18.1, as you can see from the link below we don't specify
anyconfig
anymore for a while.
https://github.com/kedro-org/kedro-starters/blob/0.18.2/pyspark/%7B%7B%20cookiecutter.repo_name%20%7D%7D/conf/base/logging.ymlNok Lam Chan
07/26/2024, 3:34 PM• i would expect behavior like in 0.18.14, all warnings should be "richified"
This should still be the case, where are those WARNINGS come from?
Nok Lam Chan
07/26/2024, 3:37 PMloggers:
kedro:
level: INFO
pet_project:
level: INFO
If you focus at the loggers
, this is where the logging.yml
will have impact on. This is done on purpose because Kedro will not change the logging settings for other package by default. The reason for this is this could have unpredicted effect and produce noisy logging.Nok Lam Chan
07/26/2024, 3:38 PMWARNING
from external package, but you see INFO
from your current project.Alexey Gravanov
07/26/2024, 3:39 PMNok Lam Chan
07/26/2024, 3:42 PManyconfig
, I am simply saying that I see anyconfig
is still in your logging.yml, which gives me information that this is a pretty old logging.yml
inherit from <0.18.2 projects.
There are more difference, for example you can see the later version of logging.yml
doesn't change root
level anymore.Nok Lam Chan
07/26/2024, 3:43 PMAlexey Gravanov
08/01/2024, 7:15 AMconf/logging.yml
and then I deleted conf/ogging.yml
and ran same node once again. Results are on the screenshot.
Sorry if I didn't make myself clean. I do not have any problems with visibility of warning messages, all messages I want to see are there, regardless if logging config is there or not. What I have problems with is the formatting of specific warning message with rich handler. When my conf/logging.yml
is there, a warning message is printed out in a clear text. When I have no conf/logging.yml
, exactly same warning is printed formatted with rich logging handler. See the area on the screenshot in a red rectangles. Exactly same warning message, but formatted different way.Alexey Gravanov
08/01/2024, 7:16 AMAlexey Gravanov
08/01/2024, 7:17 AM