diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2008-09-27 02:24:31 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2008-09-27 02:24:31 +0000 |
commit | 74118024ce239a00dce3258f60eb743c4583c0ac (patch) | |
tree | b480d48fb9bfe177660466d81df173047b057fb1 /src/lib/Proxy.py | |
parent | 6e8b40a2496bd5c0f531804a210cf6b5ba072ed1 (diff) | |
download | bcfg2-74118024ce239a00dce3258f60eb743c4583c0ac.tar.gz bcfg2-74118024ce239a00dce3258f60eb743c4583c0ac.tar.bz2 bcfg2-74118024ce239a00dce3258f60eb743c4583c0ac.zip |
Print ProtocolError messages (patch from Kamil Kisiel)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4924 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Proxy.py')
-rw-r--r-- | src/lib/Proxy.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Proxy.py b/src/lib/Proxy.py index 4c627770a..45ddf192e 100644 --- a/src/lib/Proxy.py +++ b/src/lib/Proxy.py @@ -25,8 +25,9 @@ class RetryMethod(_Method): for retry in range(max_retries): try: return _Method.__call__(self, *args) - except xmlrpclib.ProtocolError: - self.log.error("Server failure: Protocol Error") + except xmlrpclib.ProtocolError, err: + self.log.error("Server failure: Protocol Error: %s %s" % \ + (err.errcode, err.errmsg)) raise xmlrpclib.Fault(20, "Server Failure") except xmlrpclib.Fault: raise |