Module: check_mk
Branch: master
Commit: 6210e9c44172da4da4a295366caaf780325f723b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6210e9c44172da…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Fri Feb 8 10:48:02 2019 +0100
notify.py: remove redudant log entry and use event_log in all log functions
Change-Id: I0601f4b8a0a344872915e04fad16abd5db4c908f
---
cmk_base/notify.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/cmk_base/notify.py b/cmk_base/notify.py
index 46396cd..8c38be3 100755
--- a/cmk_base/notify.py
+++ b/cmk_base/notify.py
@@ -802,8 +802,6 @@ def rbn_match_event(context, state, last_state, event_map,
allowed_events):
else:
event = event_map.get(last_state, '?') + event_map.get(state,
'?')
- notify_log("Event type is %s" % event)
-
# Now go through the allowed events. Handle '?' has matching all types!
for allowed in allowed_events:
if event == allowed or \
@@ -1916,7 +1914,7 @@ def notify_log(message):
def notify_log_debug(message):
if config.notification_logging >= 2:
- notify_log(message)
+ events.event_log(notification_log, message)
def fresh_uuid():