From d98c0704c446b0fd47b18b610a92ac75de180853 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 19 Feb 2019 13:49:52 +0100 Subject: [PATCH] Debug: Log calls to ConfigObject::Deactivate() Only available in debug builds. --- lib/base/configobject.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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(); } } -- 2.40.0