From: Gunnar Beutner Date: Sat, 21 Sep 2013 07:00:40 +0000 (+0200) Subject: Comment out some of the less useful debug messages. X-Git-Tag: v0.0.3~462 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c3101336adee693835c2aa5178154fd482ebd63;p=icinga2 Comment out some of the less useful debug messages. --- diff --git a/components/cluster/clustercomponent.cpp b/components/cluster/clustercomponent.cpp index 9264018e2..7800bedb7 100644 --- a/components/cluster/clustercomponent.cpp +++ b/components/cluster/clustercomponent.cpp @@ -1508,7 +1508,7 @@ bool ClusterComponent::IsAuthority(const DynamicObject::Ptr& object, const Strin unsigned long hash = Utility::SDBM(key); unsigned long index = hash % endpoints.size(); - Log(LogDebug, "cluster", "Authority for object '" + object->GetName() + "' of type '" + object->GetType()->GetName() + "' is '" + endpoints[index] + "'."); +// Log(LogDebug, "cluster", "Authority for object '" + object->GetName() + "' of type '" + object->GetType()->GetName() + "' is '" + endpoints[index] + "'."); return (endpoints[index] == GetIdentity()); } diff --git a/lib/icinga/service-check.cpp b/lib/icinga/service-check.cpp index 763f7886a..7e49ddab2 100644 --- a/lib/icinga/service-check.cpp +++ b/lib/icinga/service-check.cpp @@ -611,11 +611,11 @@ void Service::ProcessCheckResult(const Dictionary::Ptr& cr, const String& author olock.Unlock(); - Log(LogDebug, "icinga", "Flapping: Service " + GetName() + - " was: " + Convert::ToString(was_flapping) + - " is: " + Convert::ToString(is_flapping) + - " threshold: " + Convert::ToString(GetFlappingThreshold()) + - "% current: " + Convert::ToString(GetFlappingCurrent()) + "%."); +// Log(LogDebug, "icinga", "Flapping: Service " + GetName() + +// " was: " + Convert::ToString(was_flapping) + +// " is: " + Convert::ToString(is_flapping) + +// " threshold: " + Convert::ToString(GetFlappingThreshold()) + +// "% current: " + Convert::ToString(GetFlappingCurrent()) + "%."); Utility::QueueAsyncCallback(boost::bind(boost::ref(OnNewCheckResult), GetSelf(), cr, authority)); OnStateChanged(GetSelf()); diff --git a/lib/icinga/service-flapping.cpp b/lib/icinga/service-flapping.cpp index abba147b7..a2273d8b2 100644 --- a/lib/icinga/service-flapping.cpp +++ b/lib/icinga/service-flapping.cpp @@ -101,7 +101,7 @@ void Service::UpdateFlappingStatus(bool stateChange) if (negative < 0) negative = 0; - Log(LogDebug, "icinga", "Flapping counter for '" + GetName() + "' is positive=" + Convert::ToString(positive) + ", negative=" + Convert::ToString(negative)); +// Log(LogDebug, "icinga", "Flapping counter for '" + GetName() + "' is positive=" + Convert::ToString(positive) + ", negative=" + Convert::ToString(negative)); m_FlappingPositive = positive; m_FlappingNegative = negative;