summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-03-23 19:58:53 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-03-23 19:58:53 +0000
commit2f3f78d3053ba42c1a8e7196ab5fb378a8360a68 (patch)
tree946d5173708dcdc18fcf9a49d88050e6ac345584 /src/lib
parentbd12f736a1ec1258c38e958935915e3cb1709646 (diff)
downloadbcfg2-2f3f78d3053ba42c1a8e7196ab5fb378a8360a68.tar.gz
bcfg2-2f3f78d3053ba42c1a8e7196ab5fb378a8360a68.tar.bz2
bcfg2-2f3f78d3053ba42c1a8e7196ab5fb378a8360a68.zip
* Version bump
* Verbosity improvements git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1810 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Client/Proxy.py6
-rw-r--r--src/lib/Client/Toolset.py1
2 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/Client/Proxy.py b/src/lib/Client/Proxy.py
index b019e5656..a809e70f8 100644
--- a/src/lib/Client/Proxy.py
+++ b/src/lib/Client/Proxy.py
@@ -47,10 +47,12 @@ class SafeProxy:
except xmlrpclib.Fault:
self.log.debug("Operation %s completed with fault" % (method_name))
raise
- except socket.error:
- self.log.debug("Attempting %s (%d of %d) failed" % (method_name, (irs+1), self._retries))
+ except socket.error, serr:
+ self.log.debug("Attempting %s (%d of %d) failed because %s" % (method_name, (irs+1),
+ self._retries, serr))
time.sleep(0.5)
except:
+ self.log.error("Unknown failure", exc_info=1)
break
raise xmlrpclib.Fault(20, 'Server Failure')
diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py
index 2c0bd693a..470395d5a 100644
--- a/src/lib/Client/Toolset.py
+++ b/src/lib/Client/Toolset.py
@@ -211,6 +211,7 @@ class Toolset(object):
self.states[entry] = method(entry)
except:
self.logger.error("Failure in VerifyEntry", exc_info=1)
+ self.logger.error("Entry: %s" % (lxml.etree.tostring(entry)))
def InstallEntry(self, entry):
'''Dispatch call to self.Install<tagname>'''