mirror of https://github.com/Icinga/icinga2.git
Comment out some of the less useful debug messages.
This commit is contained in:
parent
132695a460
commit
3c3101336a
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue