Add config validation stats.

Fixes #5298
This commit is contained in:
Michael Friedrich 2013-12-13 15:24:24 +01:00
parent 47f814cc4d
commit c66878fa45
1 changed files with 18 additions and 12 deletions

View File

@ -22,6 +22,7 @@
#include "base/application.h"
#include "base/dynamictype.h"
#include "base/objectlock.h"
#include "base/convert.h"
#include "base/logger_fwd.h"
#include "base/debug.h"
#include "base/workqueue.h"
@ -312,6 +313,11 @@ bool ConfigItem::ActivateItems(bool validateOnly)
upq.Join();
/* 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 (ConfigCompilerContext::GetInstance()->HasErrors())
return false;