-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
logging: Surprising call to basicConfig() #92859
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
Labels
docs
Documentation in the Doc dir
Comments
Yes, that's fine, and perhaps you should also add a paragraph in the "Basic Tutorial"'s "A simple example" section, adding not much detail (as it's an introductory section) but perhaps just a mention of :func: |
Sure thing, I'll make a PR. Thanks! |
vsajip
pushed a commit
that referenced
this issue
May 23, 2022
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 23, 2022
…ig() (pythonGH-93063) (cherry picked from commit 2176898) Co-authored-by: Nicolas Haller <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 23, 2022
…ig() (pythonGH-93063) (cherry picked from commit 2176898) Co-authored-by: Nicolas Haller <[email protected]>
vsajip
pushed a commit
that referenced
this issue
May 23, 2022
vsajip
pushed a commit
that referenced
this issue
May 23, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Documentation
Hello,
I just got surprised by a behavior of the
logging
module where a call tologging.debug()
(or any level) will call basicConfig() if no handler is set on the root logger but a call toLogger.debug()
won't.This issue was already discussed on #79711 and therefore, I would not discuss the behavior itself. Rather, I am wondering if the documentation displays this behavior enough. I agree that it is documented, but I think this is still misleading because:
basicConfig()
being called bylogging.debug()
If people agree that this is an issue, I would propose that I make a PR to add a paragraph to logging.debug() to describe the behavior.
Let me know what you think!
Thanks
The text was updated successfully, but these errors were encountered: