[issue28524] Set default argument of logging.disable() to logging.CRITICAL

Al Sweigart report at bugs.python.org
Tue Oct 25 02:09:24 EDT 2016


Al Sweigart added the comment:

As a general indicator, I did a google search for "logging.disable(logging.XXX)" for the different levels. The number of results passing ERROR, WARN, DEBUG, and INFO are under a couple dozen each. But the number of results for "logging.disable(logging.CRITICAL)" is 3,800.

It's a rough estimate, but it shows that 95%+ of the time people call logging.disable() they want to disable all logging.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28524>
_______________________________________


More information about the Python-bugs-list mailing list