Module: check_mk
Branch: master
Commit: 93e1295d9c337309ed202709fdbddd5016b947f3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=93e1295d9c3373…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Feb 22 15:58:47 2017 +0100
Removed debug output.
Change-Id: Ia0032e220cf5ac0be98790ff6517b46e79f4eb89
---
livestatus/src/TableEventConsole.cc | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/livestatus/src/TableEventConsole.cc b/livestatus/src/TableEventConsole.cc
index 82db1c0..2f76661 100644
--- a/livestatus/src/TableEventConsole.cc
+++ b/livestatus/src/TableEventConsole.cc
@@ -142,26 +142,23 @@ bool TableEventConsole::isAuthorizedForEventViaContactGroups(
auto col = static_pointer_cast<ListEventConsoleColumn>(
column("event_contact_groups"));
if (col->isNone(row)) {
- Error(_core->loggerLivestatus()) <<
"isAuthorizedForEventViaContactGroups 1";
return false;
}
for (const auto &name : col->getValue(row)) {
if (_core->is_contact_member_of_contactgroup(
_core->find_contactgroup(name), ctc)) {
- Error(_core->loggerLivestatus()) <<
"isAuthorizedForEventViaContactGroups 2";
return (result = true, true);
}
}
- Error(_core->loggerLivestatus()) <<
"isAuthorizedForEventViaContactGroups 3";
+ Error(_core->loggerLivestatus())
+ << "isAuthorizedForEventViaContactGroups 3";
return (result = false, true);
}
bool TableEventConsole::isAuthorizedForEventViaHost(
MonitoringCore::Contact *ctc, Row *row, bool &result) {
if (MonitoringCore::Host *hst = row->_host) {
- Error(_core->loggerLivestatus()) << "isAuthorizedForEventViaHost
1";
return (result = _core->host_has_contact(hst, ctc), true);
}
- Error(_core->loggerLivestatus()) << "isAuthorizedForEventViaHost
2";
return false;
}