From: Michael Friedrich Date: Tue, 19 Feb 2019 12:49:52 +0000 (+0100) Subject: Debug: Log calls to ConfigObject::Deactivate() X-Git-Tag: v2.11.0-rc1~222^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F6958%2Fhead;p=icinga2 Debug: Log calls to ConfigObject::Deactivate() Only available in debug builds. --- diff --git a/lib/base/configobject.cpp b/lib/base/configobject.cpp index bf43dd2ba..f8517d61d 100644 --- a/lib/base/configobject.cpp +++ b/lib/base/configobject.cpp @@ -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(); } }