From 4bc766035cb721da0b12d25e132b477a38748f96 Mon Sep 17 00:00:00 2001 From: Wieland Hoffmann Date: Sun, 28 Dec 2014 00:55:08 +0100 Subject: [PATCH] error: Log the messages with level ERROR Otherwise, messages logged through UIBase.error would only be passed to UIBase._msg, which only logs at INFO. This causes error to not get logged at all for the quit UI. Signed-off-by: Wieland Hoffmann Signed-off-by: Nicolas Sebrecht --- offlineimap/ui/UIBase.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/offlineimap/ui/UIBase.py b/offlineimap/ui/UIBase.py index 0090291..3c6e499 100644 --- a/offlineimap/ui/UIBase.py +++ b/offlineimap/ui/UIBase.py @@ -137,9 +137,9 @@ class UIBase(object): "repo %s") """ if msg: - self._msg("ERROR: %s\n %s" % (msg, exc)) + self.logger.error("ERROR: %s\n %s" % (msg, exc)) else: - self._msg("ERROR: %s" % (exc)) + self.logger.error("ERROR: %s" % (exc)) instant_traceback = exc_traceback if not self.debuglist: @@ -148,7 +148,7 @@ class UIBase(object): # push exc on the queue for later output self.exc_queue.put((msg, exc, exc_traceback)) if instant_traceback: - self._msg(traceback.format_tb(instant_traceback)) + self.logger.error(traceback.format_tb(instant_traceback)) def registerthread(self, account): """Register current thread as being associated with an account name."""