Comment out some of the less useful debug messages.

This commit is contained in:
Gunnar Beutner 2013-09-21 09:00:40 +02:00
parent 132695a460
commit 3c3101336a
3 changed files with 7 additions and 7 deletions

View File

@ -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());
}

View File

@ -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());

View File

@ -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;