mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Closes #28524: added default level for logging.disable().
This commit is contained in:
parent
8e9c42e8e8
commit
d489ac9102
3 changed files with 15 additions and 2 deletions
|
@ -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.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue