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

fabiand at fedoraproject.org fabiand at fedoraproject.org
Tue May 21 12:19:47 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: Id8e0c8d8dc0cc0633e3ab9776c34a2cfb795e9b6
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/28/14928/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/14928
To unsubscribe, visit http://gerrit.ovirt.org/settings

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



More information about the node-patches mailing list