Module: check_mk
Branch: master
Commit: 6c7a884cf00d7dc26c51f3fb5b7d1e295494fefe
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6c7a884cf00d7d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 16 17:18:36 2013 +0100
Removed too verbose debug information
---
modules/check_mk.py | 6 ------
1 file changed, 6 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index b515590..aac0506 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -2875,8 +2875,6 @@ def in_boolean_serviceconf_list(hostname, service_description,
conflist):
def remove_autochecks_of(hostname, checktypes = None): # None = all
removed = 0
for fn in glob.glob(autochecksdir + "/*.mk"):
- if opt_debug:
- sys.stdout.write("Scanning %s...\n" % fn)
lines = []
count = 0
for line in file(fn):
@@ -4722,8 +4720,6 @@ def do_cleanup_autochecks():
os.chdir(autochecksdir)
checks = 0
for fn in glob.glob("*.mk"):
- if opt_debug:
- sys.stdout.write("Scanning %s...\n" % fn)
for line in file(fn):
testline = line.lstrip().replace("'", '"')
if testline.startswith('("'):
@@ -4741,8 +4737,6 @@ def do_cleanup_autochecks():
for host, lines in hostdata.items():
lines.sort()
fn = host.replace(":","_") + ".mk"
- if opt_debug:
- sys.stdout.write("Writing %s: %d checks\n" % (fn, len(lines)))
newfiles.add(fn)
f = file(fn, "w+")
f.write("[\n")