diff --git a/Common/Log/LogManager.cpp b/Common/Log/LogManager.cpp index 06cfc556d2..b31ba0bad6 100644 --- a/Common/Log/LogManager.cpp +++ b/Common/Log/LogManager.cpp @@ -216,12 +216,12 @@ void LogManager::SaveConfig(Section *section) { } } -void LogManager::LoadConfig(const Section *section, bool debugDefaults) { +void LogManager::LoadConfig(const Section *section) { for (int i = 0; i < (int)Log::NUMBER_OF_LOGS; i++) { bool enabled = false; int level = 0; section->Get((std::string(g_logTypeNames[i]) + "Enabled"), &enabled, true); - section->Get((std::string(g_logTypeNames[i]) + "Level"), &level, (int)(debugDefaults ? LogLevel::LDEBUG : LogLevel::LERROR)); + section->Get((std::string(g_logTypeNames[i]) + "Level"), &level, (int)LogLevel::LERROR); g_log[i].enabled = enabled; g_log[i].level = (LogLevel)level; } diff --git a/Common/Log/LogManager.h b/Common/Log/LogManager.h index b522daf587..a366972866 100644 --- a/Common/Log/LogManager.h +++ b/Common/Log/LogManager.h @@ -153,7 +153,7 @@ public: const Path &GetLogFilePath() const { return logFilename_; } void SaveConfig(Section *section); - void LoadConfig(const Section *section, bool debugDefaults); + void LoadConfig(const Section *section); static const char *GetLogTypeName(Log type); diff --git a/Core/Config.cpp b/Core/Config.cpp index c00a18b9b6..ad76481c46 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -1217,11 +1217,7 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) { Section *log = iniFile.GetOrCreateSection(logSectionName); - bool debugDefaults = false; -#ifdef _DEBUG - debugDefaults = true; -#endif - g_logManager.LoadConfig(log, debugDefaults); + g_logManager.LoadConfig(log); Section *recent = iniFile.GetOrCreateSection("Recent"); recent->Get("MaxRecent", &iMaxRecent, 60);