logic: Prevent verbose indexer logging when logging is disabled

This commit is contained in:
Eberhard Graether
2016-12-01 16:13:25 +01:00
parent 3ab86c2e4f
commit 163f3238ce
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
ASTConsumer::ASTConsumer(clang::ASTContext* context, clang::Preprocessor* preprocessor, ParserClient* client, FileRegister* fileRegister)
{
if (ApplicationSettings::getInstance()->getVerboseIndexerLoggingEnabled())
if (ApplicationSettings::getInstance()->getLoggingEnabled() && ApplicationSettings::getInstance()->getVerboseIndexerLoggingEnabled())
{
m_visitor = std::make_shared<CxxVerboseAstVisitor>(context, preprocessor, client, fileRegister);
}