Module: check_mk
Branch: master
Commit: 0b2c997180ffe9abb44321b2788915733780cbcc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0b2c997180ffe9…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Sep 21 11:36:37 2018 +0200
6661 FIX Periodic service discovery/cronjob: Changed loglevel of informational message
The discover-marked-hosts cronjob no longer receives a <tt>Timeout of 120 seconds
reached ...</tt> message,
in case the discovery takes longer than expected. This logmessage is now only shown in
higher log level.
Change-Id: I4c4f7231f8637b2999aafb4b0fdbf0a65068a94a
---
.werks/6661 | 12 ++++++++++++
cmk_base/discovery.py | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/6661 b/.werks/6661
new file mode 100644
index 0000000..8cf4751
--- /dev/null
+++ b/.werks/6661
@@ -0,0 +1,12 @@
+Title: Periodic service discovery/cronjob: Changed loglevel of informational message
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1537522601
+
+The discover-marked-hosts cronjob no longer receives a <tt>Timeout of 120 seconds
reached ...</tt> message,
+in case the discovery takes longer than expected. This logmessage is now only shown in
higher log level.
diff --git a/cmk_base/discovery.py b/cmk_base/discovery.py
index e19ddbe..a0069fc 100644
--- a/cmk_base/discovery.py
+++ b/cmk_base/discovery.py
@@ -484,7 +484,7 @@ def discover_marked_hosts(core):
activation_required = True
if time.time() > end_time_ts:
- console.warning(" Timeout of %d seconds reached. Lets do the
remaining hosts next time." % _marked_host_discovery_timeout)
+ console.verbose(" Timeout of %d seconds reached. Lets do the
remaining hosts next time." % _marked_host_discovery_timeout)
break
except DiscoveryTimeout:
pass