Merge pull request #6958 from Icinga/feature/debug-log-stop

Debug: Log calls to ConfigObject::Deactivate()
This commit is contained in:
Michael Friedrich 2019-02-19 13:52:39 +01:00 committed by GitHub
commit 7d3f60f561
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -631,6 +631,10 @@ void ConfigObject::StopObjects()
continue; continue;
for (const ConfigObject::Ptr& object : dtype->GetObjects()) { 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(); object->Deactivate();
} }
} }