mirror of
https://github.com/python/cpython.git
synced 2025-10-22 06:32:43 +00:00
announce(): use the level argument to control the log level.
This commit is contained in:
parent
a85dbeb61f
commit
af16065918
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ class Command:
|
||||||
"""If the current verbosity level is of greater than or equal to
|
"""If the current verbosity level is of greater than or equal to
|
||||||
'level' print 'msg' to stdout.
|
'level' print 'msg' to stdout.
|
||||||
"""
|
"""
|
||||||
log.debug(msg)
|
log.log(level, msg)
|
||||||
|
|
||||||
def debug_print (self, msg):
|
def debug_print (self, msg):
|
||||||
"""Print 'msg' to stdout if the global DEBUG (taken from the
|
"""Print 'msg' to stdout if the global DEBUG (taken from the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue