]> granicus.if.org Git - icinga2/commitdiff
Debug: Log calls to ConfigObject::Deactivate() 6958/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Tue, 19 Feb 2019 12:49:52 +0000 (13:49 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Tue, 19 Feb 2019 12:49:52 +0000 (13:49 +0100)
Only available in debug builds.

lib/base/configobject.cpp

index bf43dd2ba6668e39955fd87cdee53b21ba9f2f59..f8517d61d21e7889c2e19b44dbfe24cc18bd02e0 100644 (file)
@@ -631,6 +631,10 @@ void ConfigObject::StopObjects()
                        continue;
 
                for (const ConfigObject::Ptr& object : dtype->GetObjects()) {
+#ifdef I2_DEBUG
+                       Log(LogDebug, "ConfigObject")
+                               << "Deactivate() called for config object '" << object->GetName() << "' with type '" << type->GetName() << "'.";
+#endif /* I2_DEBUG */
                        object->Deactivate();
                }
        }