[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Fix error logging when we get a 500 response.



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1173914059 0
# Node ID 8645c726ce9c63080fb5a1dd5534f6057f37016e
# Parent  1ada286787627aeb08498cc6e900e657eff68ff8
Fix error logging when we get a 500 response.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/python/xen/xm/XenAPI.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 1ada28678762 -r 8645c726ce9c tools/python/xen/xm/XenAPI.py
--- a/tools/python/xen/xm/XenAPI.py     Wed Mar 14 23:13:37 2007 +0000
+++ b/tools/python/xen/xm/XenAPI.py     Wed Mar 14 23:14:19 2007 +0000
@@ -155,7 +155,7 @@ class Session(xen.util.xmlrpclib2.Server
 
 def _parse_result(result):
     if type(result) != dict or 'Status' not in result:
-        raise xmlrpclib.Fault(500, 'Missing Status in response from server' + 
result)
+        raise xmlrpclib.Fault(500, 'Missing Status in response from server: ' 
+ str(result))
     if result['Status'] == 'Success':
         if 'Value' in result:
             return result['Value']

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.