Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log level for scoped logger set wrong #193

Closed
henryruhs opened this issue Feb 6, 2022 · 0 comments
Closed

Log level for scoped logger set wrong #193

henryruhs opened this issue Feb 6, 2022 · 0 comments

Comments

@henryruhs
Copy link

henryruhs commented Feb 6, 2022

The phue logger is set fine:

logger = logging.getLogger('phue')

But then the log level is set for the logging lib and not only for the phue logger:

logging.basicConfig(level=logging.DEBUG)

From my understanding it should be the following, otherwise ALL loggers outside phue will be set:

logger.setLevel(logging.DEBUG)

TLDR: Libraries consuming phue and using an unscoped logger will (properly) be set by phue. In my case I had to give MY logger MY scope as the log level of the phue logger had been set.

@henryruhs henryruhs closed this as not planned Won't fix, can't repro, duplicate, stale Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant