From 66e8be4b4df781c27b1433154ceb06fb2d90897c Mon Sep 17 00:00:00 2001 From: Eberhard Graether Date: Thu, 10 Mar 2016 10:26:58 +0100 Subject: [PATCH] utility: Disabled ConfigManager warnings --- src/lib/utility/ConfigManager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/utility/ConfigManager.cpp b/src/lib/utility/ConfigManager.cpp index 785b02ef..dc658b27 100644 --- a/src/lib/utility/ConfigManager.cpp +++ b/src/lib/utility/ConfigManager.cpp @@ -41,7 +41,7 @@ bool ConfigManager::getValue(const std::string& key, std::string& value) const { if (m_warnOnEmptyKey) { - LOG_WARNING("value " + key + " is not present in config."); + // LOG_WARNING("value " + key + " is not present in config."); } return false; } @@ -99,7 +99,7 @@ bool ConfigManager::getValues(const std::string& key, std::vector& { if (m_warnOnEmptyKey) { - LOG_WARNING("value " + key + " is not present in config."); + // LOG_WARNING("value " + key + " is not present in config."); } return false; } @@ -267,6 +267,7 @@ void ConfigManager::setWarnOnEmptyKey(bool warnOnEmptyKey) const } ConfigManager::ConfigManager() + : m_warnOnEmptyKey(true) { }