Root Logger being using the Leaderelection module #2364
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
What happened (please include outputs or screenshots):
It appears that the leaderelectoin module is logging directly to the root logger
logging.info(...)
This is problematic when trying to change the log level of the kubernetes logs.
You can see here "root" is being displayed as the logger name. So I am not able to specifically change the log level of the kubernetes logs without changing the loglevel for all log messages.
What you expected to happen:
I would expect to be able to configure the loglevel using something like below, however it has no affect.
logging.getLogger('kubernetes').setLevel(logging.ERROR)
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version
): client v1.30.5, server v1.32.0python --version
) 3.12.6pip list | grep kubernetes
)The text was updated successfully, but these errors were encountered: