Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-08-15 11:15:46 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-08-15 11:15:46 (GMT)
commitb1c73852040cacccd1345967b59b7ce242975d73 (patch)
tree00dfcd68d83c9327847707941f92a1957e874c91 /sugar
parent621e43563f9c3b4166b13bdda36419d17f5eb658 (diff)
Print traces also on stderr
Diffstat (limited to 'sugar')
-rw-r--r--sugar/logger.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sugar/logger.py b/sugar/logger.py
index d47f8a5..9328058 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())