summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-09-15 00:38:47 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-09-15 00:38:47 +0000
commit0c443449ac1bff48f6c71759ffce267371dc7678 (patch)
tree5e609040d443370d588b459f47844c94a9d6840e
parent1f16988e1d43bb9a994cf374569f6c7640f16837 (diff)
downloadbcfg2-0c443449ac1bff48f6c71759ffce267371dc7678.tar.gz
bcfg2-0c443449ac1bff48f6c71759ffce267371dc7678.tar.bz2
bcfg2-0c443449ac1bff48f6c71759ffce267371dc7678.zip
Add verbose logging of which bundle entries are bad
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2252 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Client/Toolset.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py
index 93cc3a0e5..a134e1e61 100644
--- a/src/lib/Client/Toolset.py
+++ b/src/lib/Client/Toolset.py
@@ -533,8 +533,11 @@ class Toolset(object):
self.RestartService(svc)
for entry in self.structures:
- if [strent for strent in entry.getchildren() if not self.states.get(strent, False)]:
+ leftovers = [strent for strent in entry.getchildren() if not self.states.get(strent, False)]
+ if len(leftovers) > 0:
self.logger.info("%s %s incomplete" % (entry.tag, entry.get('name', "")))
+ self.logger.verbose("Incorrect entries:")
+ self.logger.verbose(["%s: %s" % (left.tag, left.get('name')) for left in leftovers])
else:
self.structures[entry] = True