summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg22
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2
index 08cc391dd..d5ef99418 100755
--- a/src/sbin/bcfg2
+++ b/src/sbin/bcfg2
@@ -101,6 +101,7 @@ class Client:
def run_probe(self, probe):
'''Execute probe'''
name = probe.get('name')
+ self.logger.info("Running probe %s" % name)
ret = Bcfg2.Client.XML.Element("probe-data", name=name, source=probe.get('source'))
try:
script = open(tempfile.mktemp(), 'w+')
@@ -111,6 +112,7 @@ class Client:
script.close()
os.chmod(script.name, 0755)
ret.text = os.popen(script.name).read().strip()
+ self.logger.info("Probe %s has result:\n%s" % (name, ret.text))
finally:
os.unlink(script.name)
except: