]> granicus.if.org Git - icinga2/commitdiff
Comment out some of the less useful debug messages.
authorGunnar Beutner <gunnar@beutner.name>
Sat, 21 Sep 2013 07:00:40 +0000 (09:00 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Sat, 21 Sep 2013 07:00:40 +0000 (09:00 +0200)
components/cluster/clustercomponent.cpp
lib/icinga/service-check.cpp
lib/icinga/service-flapping.cpp

index 9264018e2ce396f2e2d4c395148f991a5c1384f3..7800bedb7455941c09ee1b25944dc1e15f2dc262 100644 (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());
 }
index 763f7886a889741c5374faaebcaa427041d588ff..7e49ddab231b99b52e3eb9bd3997254ebc93d188 100644 (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());
index abba147b7ee0e25ab5a550574b5a4ecad20f9d2f..a2273d8b2acaa40a16320c07e9d93455e0c0bc27 100644 (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;