We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
basicConfig
Hello!
What? Please change:
logging.basicConfig(level=logging.INFO) log = logging.getLogger('mattermostdriver. ...')
to:
log = logging.getLogger('mattermostdriver. ...') log.setLevel(logging.INFO)
i.e. do not configure the root logger, but only the current logger.
Why?
logging.basicConfig(**kwargs) ... This function does nothing if the root logger already has handlers configured for it.
logging.basicConfig(**kwargs)
So this will not work as expected:
import logging import mattermostdriver # calls logging.basicConfig logging.basicConfig(level=logging.DEBUG) # does nothing logging.debug("Test") # output suppressed
This would print the desired output but the import order is wrong:
import logging logging.basicConfig(level=logging.DEBUG) import mattermostdriver logging.debug("Test")
Thank you for your work!
The text was updated successfully, but these errors were encountered:
Merge pull request #15 from SmartHoneybee/patch-1
30ab71b
Suggested fix for #14
734327f
99e1d9a
No branches or pull requests
Hello!
What?
Please change:
to:
i.e. do not configure the root logger, but only the current logger.
Why?
So this will not work as expected:
This would print the desired output but the import order is wrong:
Thank you for your work!
The text was updated successfully, but these errors were encountered: