[checkmk-commits] Check_MK Git: check_mk: Ouput cache information only in debug mode

git version control git at mathias-kettner.de
Tue May 10 09:09:49 CEST 2011


Module: check_mk
Branch: master
Commit: d4de8352addfad5f9715892d09edca943be832b9
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d4de8352addfad5f9715892d09edca943be832b9

Author: Mathias Kettner <mk at 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:



More information about the checkmk-commits mailing list