Module: check_mk
Branch: master
Commit: 3f5c436f63d82a25b7593e419bde24c20ff8c8b6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3f5c436f63d82a…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Mar 6 09:15:54 2019 +0100
Fixed class and type columns of log table.
CMK-1785
Change-Id: Ia98aa470413a1383a0dde62865e3dba16c8a0403
---
livestatus/src/TableLog.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/livestatus/src/TableLog.cc b/livestatus/src/TableLog.cc
index 2ce18d1..5b71eee 100644
--- a/livestatus/src/TableLog.cc
+++ b/livestatus/src/TableLog.cc
@@ -74,14 +74,14 @@ TableLog::TableLog(MonitoringCore *mc, LogCache *log_cache)
addColumn(std::make_unique<OffsetIntColumn>(
"class",
"The class of the message as integer (0:info, 1:state, 2:program,
3:notification, 4:passive, 5:command)",
- entry_offset - 1, -1, -1, DANGEROUS_OFFSETOF(LogEntry, _class)));
+ entry_offset, -1, -1, DANGEROUS_OFFSETOF(LogEntry, _class)));
addColumn(std::make_unique<OffsetSStringColumn>(
"message", "The complete message line including the
timestamp",
entry_offset, -1, -1, DANGEROUS_OFFSETOF(LogEntry, _message)));
addColumn(std::make_unique<OffsetStringColumn>(
"type",
"The type of the message (text before the colon), the message itself for
info messages",
- entry_offset - 1, -1, -1, DANGEROUS_OFFSETOF(LogEntry, _type)));
+ entry_offset, -1, -1, DANGEROUS_OFFSETOF(LogEntry, _type)));
addColumn(std::make_unique<OffsetStringColumn>(
"options", "The part of the message after the ':'",
entry_offset, -1,
-1, DANGEROUS_OFFSETOF(LogEntry, _options)));