Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: vdsmxmlrpcInterface: avoid TypeError
......................................................................

vdsmxmlrpcInterface: avoid TypeError

This patch replaces the self.logger.error() to self.logger.exception()
for raising the exception and remove the 'e' as argument in the call.

Change-Id: Iea5753bd4e7748338fc3e112ad0607598d335c89
Signed-off-by: Douglas Schilling Landgraf <dougsl...@redhat.com>
---
M mom/HypervisorInterfaces/vdsmxmlrpcInterface.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/mom refs/changes/72/42472/1

diff --git a/mom/HypervisorInterfaces/vdsmxmlrpcInterface.py 
b/mom/HypervisorInterfaces/vdsmxmlrpcInterface.py
index 10c56ed..c44b631 100644
--- a/mom/HypervisorInterfaces/vdsmxmlrpcInterface.py
+++ b/mom/HypervisorInterfaces/vdsmxmlrpcInterface.py
@@ -250,7 +250,7 @@
             e.handle_exception()
 
     def handle_connection_error(self, e):
-        self.logger.error("Cannot connect to VDSM!", e)
+        self.logger.exception("Cannot connect to VDSM!")
 
 
 class vdsmException(Exception):


-- 
To view, visit https://gerrit.ovirt.org/42472
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iea5753bd4e7748338fc3e112ad0607598d335c89
Gerrit-PatchSet: 1
Gerrit-Project: mom
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsl...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to