mirror of https://github.com/Icinga/icinga2.git
Add some debug output in the config compiler.
This commit is contained in:
parent
b9ded4a851
commit
96b1bd1943
|
@ -113,6 +113,8 @@ void ConfigCompilerContext::LinkItems(void)
|
|||
{
|
||||
SetContext(this);
|
||||
|
||||
Log(LogInformation, "config", "Linking config items...");
|
||||
|
||||
BOOST_FOREACH(const ConfigItem::Ptr& item, m_Items) {
|
||||
item->Link();
|
||||
}
|
||||
|
@ -124,6 +126,8 @@ void ConfigCompilerContext::ValidateItems(void)
|
|||
{
|
||||
SetContext(this);
|
||||
|
||||
Log(LogInformation, "config", "Validating config items...");
|
||||
|
||||
BOOST_FOREACH(const ConfigItem::Ptr& item, m_Items) {
|
||||
ConfigType::Ptr ctype;
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ Expression::Expression(const String& key, ExpressionOperator op,
|
|||
const Value& value, const DebugInfo& debuginfo)
|
||||
: m_Key(key), m_Operator(op), m_Value(value), m_DebugInfo(debuginfo)
|
||||
{
|
||||
ASSERT(op != OperatorExecute || value.IsObjectType<ExpressionList>());
|
||||
}
|
||||
|
||||
void Expression::Execute(const Dictionary::Ptr& dictionary) const
|
||||
|
|
Loading…
Reference in New Issue