Renamed debug logging param
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
void Logger::configure(const ProjectConfig& projectConfig) {
|
void Logger::configure(const ProjectConfig& projectConfig) {
|
||||||
if (projectConfig.debugLoggingEnabled) {
|
if (projectConfig.debugLogging) {
|
||||||
Logger::debugPrintingEnabled = true;
|
Logger::debugPrintingEnabled = true;
|
||||||
Logger::debug("Debug log printing has been enabled");
|
Logger::debug("Debug log printing has been enabled");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,8 +71,13 @@ ProjectConfig::ProjectConfig(const YAML::Node& configNode) {
|
|||||||
this->insightConfig = InsightConfig(configNode["insight"]);
|
this->insightConfig = InsightConfig(configNode["insight"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Old param name, will remove later
|
||||||
if (configNode["debugLoggingEnabled"]) {
|
if (configNode["debugLoggingEnabled"]) {
|
||||||
this->debugLoggingEnabled = configNode["debugLoggingEnabled"].as<bool>(this->debugLoggingEnabled);
|
this->debugLogging = configNode["debugLoggingEnabled"].as<bool>(this->debugLogging);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (configNode["debugLogging"]) {
|
||||||
|
this->debugLogging = configNode["debugLogging"].as<bool>(this->debugLogging);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ struct ProjectConfig
|
|||||||
*/
|
*/
|
||||||
InsightConfig insightConfig = InsightConfig();
|
InsightConfig insightConfig = InsightConfig();
|
||||||
|
|
||||||
bool debugLoggingEnabled = false;
|
bool debugLogging = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Obtains config parameters from YAML node.
|
* Obtains config parameters from YAML node.
|
||||||
|
|||||||
Reference in New Issue
Block a user