[node-patches] Change in ovirt-node[master]: utils: Note Exception type on TX failure

fabiand at fedoraproject.org fabiand at fedoraproject.org
Fri Apr 19 11:02:33 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: utils: Note Exception type on TX failure
......................................................................

utils: Note Exception type on TX failure

Change-Id: If4fef4f3abc1548a97c165497f1d81d99c6f3542
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/utils/__init__.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/71/14071/1

diff --git a/src/ovirt/node/utils/__init__.py b/src/ovirt/node/utils/__init__.py
index 75df0bd..f308168 100644
--- a/src/ovirt/node/utils/__init__.py
+++ b/src/ovirt/node/utils/__init__.py
@@ -222,7 +222,8 @@
             self.prepare()
             self.commit()
         except Exception as e:
-            self.logger.warning("Transaction failed: %s" % e.message)
+            self.logger.warning("Transaction failed (%s): %s" % (e, e.message),
+                                exc_info=True)
             self.abort()
             raise exceptions.TransactionError("Transaction failed: " +
                                               "%s" % e.message)


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

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