Debug: Log calls to ConfigObject::Deactivate()

Only available in debug builds.
This commit is contained in:
Michael Friedrich 2019-02-19 13:49:52 +01:00
parent 01befd7e32
commit d98c0704c4
1 changed files with 4 additions and 0 deletions

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