Module: check_mk
Branch: master
Commit: 3421f6370bc5b17ff8e43b0e771522306651c258
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3421f6370bc5b1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jul 25 15:38:05 2018 +0200
CMK-646: Increase logging of mkeventd (and fix liveproxyd logging) during integration
tests
Change-Id: I102ca2264d461e50682807700b373b1f639ef97b
---
tests/testlib/__init__.py | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index 9220024..5baa2be 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -531,6 +531,7 @@ class Site(object):
self._enable_mod_python_debug()
self._enabled_liveproxyd_debug_logging()
+ self._enable_mkeventd_debug_logging()
self._install_test_python_modules()
@@ -636,11 +637,22 @@ class Site(object):
def _enabled_liveproxyd_debug_logging(self):
- self.makedirs("etc/check_mk/liveproxyd.d/wato")
- self.write_file("etc/check_mk/liveproxyd.d/wato/global.mk",
+ self.makedirs("etc/check_mk/liveproxyd.d")
+ self.write_file("etc/check_mk/liveproxyd.d/logging.mk",
"liveproxyd_log_levels = {'cmk.liveproxyd': 10}")
+ def _enable_mkeventd_debug_logging(self):
+ self.makedirs("etc/check_mk/mkeventd.d")
+ self.write_file("etc/check_mk/mkeventd.d/logging.mk",
+ "log_level = %r\n" % {
+ 'cmk.mkeventd': 10,
+ 'cmk.mkeventd.EventServer': 10,
+ 'cmk.mkeventd.EventStatus': 10,
+ 'cmk.mkeventd.StatusServer': 10,
+ 'cmk.mkeventd.lock': 20
+ })
+
def _enable_mod_python_debug(self):
path = "etc/check_mk/apache.conf"
content = self.read_file(path)