Debug: Log calls to ConfigObject::Deactivate()

Only available in debug builds.

(cherry picked from commit d98c0704c446b0fd47b18b610a92ac75de180853)
This commit is contained in:
Michael Friedrich 2019-02-19 13:49:52 +01:00
parent 4f494b9a91
commit 466096a6a4

View File

@ -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();
}
}