[node-patches] Change in ovirt-node[master]: ui: Add traceback to log in case of a UI exception

fabiand at fedoraproject.org fabiand at fedoraproject.org
Tue Feb 19 13:02:24 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: ui: Add traceback to log in case of a UI exception
......................................................................

ui: Add traceback to log in case of a UI exception

Change-Id: I0395f777f7260bc991e3dae9e5bf52bffe1036d3
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/tui/src/ovirt/node/app.py
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/97/12197/1

diff --git a/scripts/tui/src/ovirt/node/app.py b/scripts/tui/src/ovirt/node/app.py
index a2b5e54..9543f5f 100644
--- a/scripts/tui/src/ovirt/node/app.py
+++ b/scripts/tui/src/ovirt/node/app.py
@@ -26,6 +26,7 @@
 import logging
 import logging.config
 import sys
+import traceback
 
 """
 Representing the whole application (not just the TUI).
@@ -299,6 +300,7 @@
         except Exception as e:
             utils.process.call("reset")
             self.logger.error("An error appeared in the UI: %s" % repr(e))
+            self.logger.debug("%s" % traceback.format_exc())
             console.writeln("Press ENTER to logout ...")
             console.writeln("or enter 's' to drop to shell")
             if console.wait_for_keypress() == 's':


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0395f777f7260bc991e3dae9e5bf52bffe1036d3
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