From d006092d37b180bb0490ab7e1182662afc5ae5cf Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sat, 6 Feb 2010 13:11:22 +0100 Subject: [PATCH] Log saving errors in activities #1703 --- src/sugar/activity/activity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sugar/activity/activity.py b/src/sugar/activity/activity.py index dea36a06..c91a023c 100644 --- a/src/sugar/activity/activity.py +++ b/src/sugar/activity/activity.py @@ -522,7 +522,7 @@ class Activity(Window, gtk.Container): if self._closing: self._show_keep_failed_dialog() self._closing = False - logging.debug('Error saving activity object to datastore: %s', err) + raise RuntimeError('Error saving activity object to datastore: %s', err) def _cleanup_jobject(self): if self._jobject: @@ -774,7 +774,7 @@ class Activity(Window, gtk.Container): try: self.save() except: - logging.info(traceback.format_exc()) + logging.exception('Error saving activity object to datastore') self._show_keep_failed_dialog() return False