Only print config validation for existing objects.

Refs #5298
This commit is contained in:
Michael Friedrich 2013-12-16 09:39:14 +01:00
parent 807d0a47e6
commit 9452bc7095
1 changed files with 2 additions and 1 deletions

View File

@ -315,7 +315,8 @@ bool ConfigItem::ActivateItems(bool validateOnly)
/* log stats for external parsers */
BOOST_FOREACH(const DynamicType::Ptr& type, DynamicType::GetTypes()) {
Log(LogInformation, "config", "Checked " + Convert::ToString(type->GetObjects().size()) + " " + type->GetName() + "(s).");
if (type->GetObjects().size() > 0)
Log(LogInformation, "config", "Checked " + Convert::ToString(type->GetObjects().size()) + " " + type->GetName() + "(s).");
}
if (ConfigCompilerContext::GetInstance()->HasErrors())