Module: check_mk
Branch: master
Commit: cfd47d267a9f0978cff1ffbc56fe43189c25652e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cfd47d267a9f09…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Sep 28 14:43:23 2012 +0200
BI: Fixed logging call if logging disabled
---
web/htdocs/bi.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index f6dbc32..33e6100 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -204,7 +204,8 @@ def compile_forest(user, only_hosts = None, only_groups = None):
global g_cache, g_user_cache, g_compiled_everything
def log(s):
- file(config.bi_compile_log, "a").write(s)
+ if compile_logging():
+ file(config.bi_compile_log, "a").write(s)
new_config_information = cache_needs_update()
if new_config_information: