[node-patches] Change in ovirt-node[node-3.0]: app: Log a backtrace when an exception occurs

fabiand at fedoraproject.org fabiand at fedoraproject.org
Tue May 21 14:42:23 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: app: Log a backtrace when an exception occurs
......................................................................

app: Log a backtrace when an exception occurs

Change-Id: Ib0ea9cb3360863d07605af688c5e8144f96dd1ee
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/app.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/45/14945/1

diff --git a/src/ovirt/node/app.py b/src/ovirt/node/app.py
index cf8f73e..8ffc8f2 100644
--- a/src/ovirt/node/app.py
+++ b/src/ovirt/node/app.py
@@ -218,7 +218,7 @@
             self.quit()
 
         def display_exception_as_notice(e):
-            self.logger.debug(traceback.format_exc())
+            self.logger.debug(e, exc_info=True)
             children = [ui.Label("dialog.notice.exception", "%s" % e)]
             notice = ui.Dialog("dialog.notice", "An exception occurred",
                                children)


--
To view, visit http://gerrit.ovirt.org/14945
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib0ea9cb3360863d07605af688c5e8144f96dd1ee
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: node-3.0
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>



More information about the node-patches mailing list