announce(): use the level argument to control the log level.

This commit is contained in:
Guido van Rossum 2003-02-20 02:10:08 +00:00
parent a85dbeb61f
commit af16065918

View file

@ -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