]> granicus.if.org Git - icinga2/commitdiff
Remove debug output
authorMichael Friedrich <michael.friedrich@netways.de>
Fri, 29 Jan 2016 13:03:58 +0000 (14:03 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Fri, 29 Jan 2016 13:03:58 +0000 (14:03 +0100)
refs #11014

lib/icinga/checkable-check.cpp

index 0091748dff6967d12704a2163a5c7af01b3468df..9fef6e1b5c2041c5d0f85d1600cca8789a346f21 100644 (file)
@@ -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")) {