Hacked out format into our logging calls.

This commit is contained in:
Jeremy Fincher 2005-02-01 08:31:31 +00:00
parent 8512f52e27
commit 304ad0868e
1 changed files with 4 additions and 0 deletions

View File

@ -90,6 +90,10 @@ class Logger(logging.Logger):
def verbose(self, *args, **kwargs):
self.log(VERBOSE, *args, **kwargs)
def _log(self, level, msg, args, exc_info=None):
msg = format(msg, *args)
logging.Logger._log(self, level, msg, (), exc_info=exc_info)
class StdoutStreamHandler(logging.StreamHandler):
def disable(self):