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

Vinay Sajip report at bugs.python.org
Sun Oct 30 11:01:47 EDT 2016


Vinay Sajip added the comment:

> The use case I've found is that I often have logging enabled while writing code, and then want to shut it off once I've finished.

You could do this by having a configuration which is quite verbose while doing development and then less verbose when in production mode.  Then if an issue crops up in production, verbosity could be temporarily turned up in the production configuration while diagnosing the issue, then turned down again later, without making code changes. Remember that verbosity can be set at the handler level too, which sometimes gives finer-grained control of logging verbosity.

----------

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


More information about the Python-bugs-list mailing list