From 22653d35332839bf3a65a19c3f7b3589543bb6b4 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Mon, 14 Oct 2013 17:40:08 +0200 Subject: [PATCH] Fix Logger.fatal() --- base/logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/logger.py b/base/logger.py index 6ed22b2..276c7d1 100644 --- a/base/logger.py +++ b/base/logger.py @@ -334,8 +334,8 @@ class Logger(object): def fatal(self, message): if self._level <= Logger.LOG_LEVEL_FATAL: - txt = "fatal error: :%s" % self - self.log(self.color(txt, 'red'), Logger.LOG_LEVEL_DEBUG) + txt = "fatal error: :%s" % message + self.log(self.color(txt, 'red'), Logger.LOG_LEVEL_FATAL) syslog.syslog(syslog.LOG_ALERT, "%s[%d]: %s" % (self.module, self.pid, txt)) -- 1.8.3.1