Module: check_mk
Branch: master
Commit: a80096485834963e9b142e55bf615ff851fa8d0b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a8009648583496…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Feb 1 10:39:42 2019 +0100
Fix try-inventory output wrapping
CMK-1556
Change-Id: I7a10b5ab66a630dc25cd8cde5a1020d54161912b
---
cmk_base/automations/check_mk.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmk_base/automations/check_mk.py b/cmk_base/automations/check_mk.py
index b9b8cfc..8822737 100644
--- a/cmk_base/automations/check_mk.py
+++ b/cmk_base/automations/check_mk.py
@@ -148,9 +148,9 @@ class AutomationTryDiscovery(Automation):
needs_checks = True # TODO: Can we change this?
def execute(self, args):
- cmk.utils.log.set_verbosity(2)
-
with redirect_output(cStringIO.StringIO()) as buf:
+ cmk.utils.log.setup_console_logging()
+ cmk.utils.log.set_verbosity(1)
result = self._execute_discovery(args)
return {"output": buf.getvalue(), "check_table": result}