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
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ class Command:
"""If the current verbosity level is of greater than or equal to
'level' print 'msg' to stdout.
"""
log.debug(msg)
log.log(level, msg)
def debug_print (self, msg):
"""Print 'msg' to stdout if the global DEBUG (taken from the