From 60d6dcd6188695add3c7b620c2a3eb61092fcf0a Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 8 May 2007 11:49:52 +0100 Subject: [PATCH] sugar/logger.py: interpolate %x parameters in messages from the logging framework --- sugar/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sugar/logger.py b/sugar/logger.py index 87a9c96c..5cd3d727 100644 --- a/sugar/logger.py +++ b/sugar/logger.py @@ -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: