Module: check_mk
Branch: master
Commit: 77c9ca4070fd7bcaabb2cbbb34b47795814e1f29
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=77c9ca4070fd7b…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Jul 19 14:11:40 2017 +0200
5020 FIX Log levels for the event console are now updated on activation of changes
Previously, a restart was necessary to propagate the changes. This has been
fixed.
Change-Id: I8c9bbcb43dd8a64daed0a579c272f63bedb72b07
---
.werks/5020 | 11 +++++++++++
bin/mkeventd | 6 +++---
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/.werks/5020 b/.werks/5020
new file mode 100644
index 0000000..2c4995f
--- /dev/null
+++ b/.werks/5020
@@ -0,0 +1,11 @@
+Title: Log levels for the event console are now updated on activation of changes
+Level: 1
+Component: ec
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1500466164
+Class: fix
+
+Previously, a restart was necessary to propagate the changes. This has been
+fixed.
diff --git a/bin/mkeventd b/bin/mkeventd
index 5461c50..0839191 100755
--- a/bin/mkeventd
+++ b/bin/mkeventd
@@ -1252,7 +1252,6 @@ class EventServer(object):
self._snmptrap = None
self._mib_resolver = None
self.logger = logger.getChild("EventServer")
-
self.logger.setLevel(g_config["log_level"]["cmk.mkeventd.EventServer"])
self.create_pipe()
self.open_eventsocket()
@@ -3081,7 +3080,6 @@ class StatusServer(object):
self._reopen_sockets = False
self._should_terminate = False
self.logger = logger.getChild("StatusServer")
-
self.logger.setLevel(g_config["log_level"]["cmk.mkeventd.StatusServer"])
self.open_sockets()
@@ -3637,7 +3635,6 @@ class EventStatus(object):
def __init__(self):
self.logger = logger.getChild("EventStatus")
-
self.logger.setLevel(g_config["log_level"]["cmk.mkeventd.EventStatus"])
self.flush()
@@ -4708,6 +4705,9 @@ def load_configuration():
}
logger.setLevel(g_config["log_level"]["cmk.mkeventd"])
+
logger.getChild("EventServer").setLevel(g_config["log_level"]["cmk.mkeventd.EventServer"])
+
logger.getChild("EventStatus").setLevel(g_config["log_level"]["cmk.mkeventd.EventStatus"])
+
logger.getChild("StatusServer").setLevel(g_config["log_level"]["cmk.mkeventd.StatusServer"])
# Configure the auto deleting indexes in the DB when mongodb is enabled
if g_config['archive_mode'] == 'mongodb':