Module: check_mk
Branch: master
Commit: 18a9dd054e2773a6b9261ac0ebe8544b317a9148
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=18a9dd054e2773…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Aug 29 13:49:42 2016 +0200
Cleaned up logging level confusion.
---
livestatus/src/module.cc | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/livestatus/src/module.cc b/livestatus/src/module.cc
index c0b67e9..05e3723 100644
--- a/livestatus/src/module.cc
+++ b/livestatus/src/module.cc
@@ -57,7 +57,6 @@
#include "data_encoding.h"
#include "global_counters.h"
#include "livestatus.h"
-#include "logger.h"
#include "nagios.h"
#include "strutil.h"
#include "waittriggers.h"
@@ -486,7 +485,7 @@ void livestatus_log_initial_states() {
snprintf(buffer, sizeof(buffer),
"HOST DOWNTIME ALERT: %s;STARTED;%s", h->name,
get_downtime_comment(h->name, nullptr));
- write_to_all_logs(buffer, LG_INFO);
+ write_to_all_logs(buffer, NSLOG_INFO_MESSAGE);
}
}
// Log DOWNTIME services
@@ -497,7 +496,7 @@ void livestatus_log_initial_states() {
"SERVICE DOWNTIME ALERT: %s;%s;STARTED;%s",
s->host_name,
s->description,
get_downtime_comment(s->host_name, s->description));
- write_to_all_logs(buffer, LG_INFO);
+ write_to_all_logs(buffer, NSLOG_INFO_MESSAGE);
}
}
// Log TIMERPERIODS
@@ -515,7 +514,7 @@ int broker_event(int event_type __attribute__((__unused__)), void
*data) {
// initial info during startup
// TODO(sp) The Nagios headers are (once again) not const-correct...
write_to_all_logs(const_cast<char *>("logging initial
states"),
- LG_INFO);
+ NSLOG_INFO_MESSAGE);
}
}
g_timeperiods_cache->update(ts->timestamp.tv_sec);