Module: check_mk
Branch: master
Commit: d4de8352addfad5f9715892d09edca943be832b9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d4de8352addfad…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon May 9 17:48:34 2011 +0200
Ouput cache information only in debug mode
---
modules/check_mk_base.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index 9c1e601..e8d14d9 100755
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -375,10 +375,10 @@ def read_cache_file(relpath, max_cache_age):
result = f.read(10000000)
f.close()
if len(result) > 0:
- if opt_verbose:
+ if opt_debug:
sys.stderr.write("Using data from cachefile %s.\n" %
cachefile)
return result
- elif opt_verbose:
+ elif opt_debug:
sys.stderr.write("Skipping cache file %s: Too old\n" % cachefile)
if simulation_mode and not opt_no_cache: