mirror of https://github.com/Icinga/icinga2.git
parent
23b75fd30d
commit
ada9f634dd
|
@ -72,11 +72,11 @@ static bool LoadConfigFiles(bool validateOnly)
|
|||
}
|
||||
}
|
||||
|
||||
context.LinkItems();
|
||||
|
||||
/* Don't validate if we have already encountered at least one error. */
|
||||
if (!hasError)
|
||||
/* Don't link or validate if we have already encountered at least one error. */
|
||||
if (!hasError) {
|
||||
context.LinkItems();
|
||||
context.ValidateItems();
|
||||
}
|
||||
|
||||
hasError = false;
|
||||
|
||||
|
|
|
@ -34,6 +34,9 @@ ConfigCompilerContext::ConfigCompilerContext(void)
|
|||
|
||||
void ConfigCompilerContext::AddItem(const ConfigItem::Ptr& item)
|
||||
{
|
||||
Log(LogDebug, "config", "Adding item to compiler context: type=" +
|
||||
item->GetType() + "; name=" + item->GetName());
|
||||
|
||||
m_Items.push_back(item);
|
||||
m_ItemsMap[std::make_pair(item->GetType(), item->GetName())] = item;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue