diff --git a/src/Logger/Logger.cpp b/src/Logger/Logger.cpp index 0c8ec121..7baebed3 100644 --- a/src/Logger/Logger.cpp +++ b/src/Logger/Logger.cpp @@ -3,7 +3,7 @@ #include void Logger::configure(const ProjectConfig& projectConfig) { - if (projectConfig.debugLoggingEnabled) { + if (projectConfig.debugLogging) { Logger::debugPrintingEnabled = true; Logger::debug("Debug log printing has been enabled"); } diff --git a/src/ProjectConfig.cpp b/src/ProjectConfig.cpp index bc4f0515..8175a687 100644 --- a/src/ProjectConfig.cpp +++ b/src/ProjectConfig.cpp @@ -71,8 +71,13 @@ ProjectConfig::ProjectConfig(const YAML::Node& configNode) { this->insightConfig = InsightConfig(configNode["insight"]); } + // Old param name, will remove later if (configNode["debugLoggingEnabled"]) { - this->debugLoggingEnabled = configNode["debugLoggingEnabled"].as(this->debugLoggingEnabled); + this->debugLogging = configNode["debugLoggingEnabled"].as(this->debugLogging); + } + + if (configNode["debugLogging"]) { + this->debugLogging = configNode["debugLogging"].as(this->debugLogging); } } diff --git a/src/ProjectConfig.hpp b/src/ProjectConfig.hpp index bda583c0..fd394848 100644 --- a/src/ProjectConfig.hpp +++ b/src/ProjectConfig.hpp @@ -234,7 +234,7 @@ struct ProjectConfig */ InsightConfig insightConfig = InsightConfig(); - bool debugLoggingEnabled = false; + bool debugLogging = false; /** * Obtains config parameters from YAML node.