From: Michael Friedrich Date: Fri, 29 Jan 2016 13:03:58 +0000 (+0100) Subject: Remove debug output X-Git-Tag: v2.5.0~573 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a3848af1ea8f54c38e6e15b1c4688d1c89fd286;p=icinga2 Remove debug output refs #11014 --- diff --git a/lib/icinga/checkable-check.cpp b/lib/icinga/checkable-check.cpp index 0091748df..9fef6e1b5 100644 --- a/lib/icinga/checkable-check.cpp +++ b/lib/icinga/checkable-check.cpp @@ -116,24 +116,14 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig if (cr->GetExecutionEnd() == 0) cr->SetExecutionEnd(now); - if (!origin || origin->IsLocal()) { - Log(LogDebug, "Checkable") - << "No origin or local origin for object '" << GetName() - << "', setting " << IcingaApplication::GetInstance()->GetNodeName() - << " as check_source."; + if (!origin || origin->IsLocal()) cr->SetCheckSource(IcingaApplication::GetInstance()->GetNodeName()); - } Endpoint::Ptr command_endpoint = GetCommandEndpoint(); /* override check source if command_endpoint was defined */ - if (command_endpoint && !GetExtension("agent_check")) { - Log(LogDebug, "Checkable") - << "command_endpoint found for object '" << GetName() - << "', setting " << command_endpoint->GetName() - << " as check_source."; + if (command_endpoint && !GetExtension("agent_check")) cr->SetCheckSource(command_endpoint->GetName()); - } /* agent checks go through the api */ if (command_endpoint && GetExtension("agent_check")) {