Module: check_mk
Branch: master
Commit: 53daa71e13f0132002ace7572a9b02b4943a340a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=53daa71e13f013…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Dec 4 14:20:37 2018 +0100
Add dedicated log level option for GUI automation calls
Change-Id: I9b7f652ac453bc88a73c61526f3a6ed5f3fd7896
---
cmk/gui/plugins/config/base.py | 1 +
cmk/gui/plugins/wato/check_mk_configuration.py | 3 +++
cmk/gui/watolib.py | 2 +-
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/cmk/gui/plugins/config/base.py b/cmk/gui/plugins/config/base.py
index 46a160b..ce2826c 100644
--- a/cmk/gui/plugins/config/base.py
+++ b/cmk/gui/plugins/config/base.py
@@ -53,6 +53,7 @@ log_levels = {
"cmk.web.ldap": 30,
"cmk.web.auth": 30,
"cmk.web.bi.compilation": 30,
+ "cmk.web.automations": 30,
}
# New style, used by WATO
diff --git a/cmk/gui/plugins/wato/check_mk_configuration.py
b/cmk/gui/plugins/wato/check_mk_configuration.py
index 7f3b9f4..b5da70f 100644
--- a/cmk/gui/plugins/wato/check_mk_configuration.py
+++ b/cmk/gui/plugins/wato/check_mk_configuration.py
@@ -182,6 +182,9 @@ class ConfigVariableLogLevels(ConfigVariable):
_("If this option is enabled, Check_MK BI will create a log with
details "
"about compiling BI aggregations. This includes statistics and
"
"details for each executed compilation.")),
+ ("cmk.web.automations", _("Automation calls"),
+ _("Communication between different components of Check_MK (e.g. GUI and
check engine) "
+ "will be logged in this log level."))
]:
elements.append((level_id,
LogLevelChoice(
diff --git a/cmk/gui/watolib.py b/cmk/gui/watolib.py
index ebcb36d..0cfb9a3 100644
--- a/cmk/gui/watolib.py
+++ b/cmk/gui/watolib.py
@@ -7189,7 +7189,7 @@ def check_mk_local_automation(command, args=None,
indata="", stdin_data=None, ti
if args is None:
args = []
- auto_logger = logger.getChild("config.automations")
+ auto_logger = logger.getChild("automations")
if timeout:
args = ["--timeout", "%d" % timeout] + args