sugar/logger.py: interpolate %x parameters in messages from the logging framework

This commit is contained in:
Simon McVittie 2007-05-08 11:49:52 +01:00
parent d598097994
commit 60d6dcd618

View File

@ -38,7 +38,7 @@ class LogWriter:
self._log_file = open(log_path, 'w')
def write_record(self, record):
self.write(record.levelno, record.msg)
self.write(record.levelno, record.getMessage())
def write(self, level, msg):
if level == logging.ERROR: