summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Logging/LogManager.cpp
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2019-03-03 18:44:34 -0500
committerGitHub <noreply@github.com>2019-03-03 18:44:34 -0500
commit503b96c617997ccd2105481f6833e583b9905991 (patch)
treecf0c81cb333e166aa7493ea5eca3028fb76f5076 /Source/Core/Common/Logging/LogManager.cpp
parent2eb9140e07d253a584bca91638e843e654c74c08 (diff)
parentbbc6bf5294f829d62ef61244c315c2886c54c790 (diff)
Merge pull request #7848 from jordan-woyak/config-change-callbacks
Common/Config: Add a utility class to defer config change callbacks.
Diffstat (limited to 'Source/Core/Common/Logging/LogManager.cpp')
-rw-r--r--Source/Core/Common/Logging/LogManager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Common/Logging/LogManager.cpp b/Source/Core/Common/Logging/LogManager.cpp
index cd108b0f46..6efb4a39d0 100644
--- a/Source/Core/Common/Logging/LogManager.cpp
+++ b/Source/Core/Common/Logging/LogManager.cpp
@@ -173,6 +173,8 @@ LogManager::~LogManager()
void LogManager::SaveSettings()
{
+ Config::ConfigChangeCallbackGuard config_guard;
+
Config::SetBaseOrCurrent(LOGGER_WRITE_TO_FILE, IsListenerEnabled(LogListener::FILE_LISTENER));
Config::SetBaseOrCurrent(LOGGER_WRITE_TO_CONSOLE,
IsListenerEnabled(LogListener::CONSOLE_LISTENER));