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 <themineo@gmail.com> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
4273c9b305
commit
4bc766035c
@ -137,9 +137,9 @@ class UIBase(object):
|
|||||||
"repo %s")
|
"repo %s")
|
||||||
"""
|
"""
|
||||||
if msg:
|
if msg:
|
||||||
self._msg("ERROR: %s\n %s" % (msg, exc))
|
self.logger.error("ERROR: %s\n %s" % (msg, exc))
|
||||||
else:
|
else:
|
||||||
self._msg("ERROR: %s" % (exc))
|
self.logger.error("ERROR: %s" % (exc))
|
||||||
|
|
||||||
instant_traceback = exc_traceback
|
instant_traceback = exc_traceback
|
||||||
if not self.debuglist:
|
if not self.debuglist:
|
||||||
@ -148,7 +148,7 @@ class UIBase(object):
|
|||||||
# push exc on the queue for later output
|
# push exc on the queue for later output
|
||||||
self.exc_queue.put((msg, exc, exc_traceback))
|
self.exc_queue.put((msg, exc, exc_traceback))
|
||||||
if instant_traceback:
|
if instant_traceback:
|
||||||
self._msg(traceback.format_tb(instant_traceback))
|
self.logger.error(traceback.format_tb(instant_traceback))
|
||||||
|
|
||||||
def registerthread(self, account):
|
def registerthread(self, account):
|
||||||
"""Register current thread as being associated with an account name."""
|
"""Register current thread as being associated with an account name."""
|
||||||
|
Loading…
Reference in New Issue
Block a user