Module: check_mk
Branch: master
Commit: 32a9cf514b62f93ccf4c63741ef1169cfd537cf7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=32a9cf514b62f9…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Sat Sep 7 09:25:09 2013 +0200
LogEntry.cc: fixed query of LOGCLASS_INFO objects
---
livestatus/src/LogEntry.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/livestatus/src/LogEntry.cc b/livestatus/src/LogEntry.cc
index 098fb32..5138fd2 100644
--- a/livestatus/src/LogEntry.cc
+++ b/livestatus/src/LogEntry.cc
@@ -67,6 +67,9 @@ LogEntry::LogEntry(unsigned lineno, char *line, unsigned logclasses =
LOGCLASS_A
_time = atoi(_msg+1);
_text = _msg + 13; // also skip space after timestamp
+ // If LOGCLASS_INFO is in logclasses we can't thin out the function calls
+ logclasses = 1 << LOGCLASS_INFO & logclasses ? LOGCLASS_ALL : logclasses;
+
// now classify the log message. Some messages
// refer to other table, some do not.
if (((1 << LOGCLASS_ALERT & logclasses) && handleStatusEntry()) ||