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