From 466096a6a4d1c61f83886c0de88c4ee45df6f49c 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. (cherry picked from commit d98c0704c446b0fd47b18b610a92ac75de180853) --- lib/base/configobject.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/base/configobject.cpp b/lib/base/configobject.cpp index 9d44db60a..b73285bc5 100644 --- a/lib/base/configobject.cpp +++ b/lib/base/configobject.cpp @@ -624,6 +624,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