From b1c73852040cacccd1345967b59b7ce242975d73 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 15 Aug 2006 13:15:46 +0200 Subject: [PATCH] Print traces also on stderr --- shell/HomeWindow.py | 2 +- sugar/logger.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/HomeWindow.py b/shell/HomeWindow.py index 886068c2..25a777b0 100644 --- a/shell/HomeWindow.py +++ b/shell/HomeWindow.py @@ -118,7 +118,7 @@ class TasksGrid(gtk.VBox): class HomeWindow(gtk.Window): def __init__(self, shell): gtk.Window.__init__(self) - + self._shell = shell self.connect('realize', self.__realize_cb) diff --git a/sugar/logger.py b/sugar/logger.py index d47f8a53..9328058a 100644 --- a/sugar/logger.py +++ b/sugar/logger.py @@ -80,6 +80,7 @@ class Handler(logging.Handler): def __exception_handler(typ, exc, tb): trace = StringIO() traceback.print_exception(typ, exc, tb, None, trace) + print >> sys.stderr, trace.getvalue() __queue.append(logging.ERROR, trace.getvalue())