Closes #28524: added default level for logging.disable().

This commit is contained in:
Vinay Sajip 2016-12-31 11:40:11 +00:00
parent 8e9c42e8e8
commit d489ac9102
3 changed files with 15 additions and 2 deletions

View file

@ -1889,7 +1889,7 @@ def log(level, msg, *args, **kwargs):
basicConfig()
root.log(level, msg, *args, **kwargs)
def disable(level):
def disable(level=CRITICAL):
"""
Disable all logging calls of severity 'level' and below.
"""