From b1c73852040cacccd1345967b59b7ce242975d73 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 15 Aug 2006 11:15:46 +0000 Subject: Print traces also on stderr --- (limited to 'sugar') 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()) -- cgit v0.9.1