diff options
| author | Mat M <mathew1800@gmail.com> | 2019-03-03 18:44:34 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-03 18:44:34 -0500 |
| commit | 503b96c617997ccd2105481f6833e583b9905991 (patch) | |
| tree | cf0c81cb333e166aa7493ea5eca3028fb76f5076 /Source/Core/Common/Logging/LogManager.cpp | |
| parent | 2eb9140e07d253a584bca91638e843e654c74c08 (diff) | |
| parent | bbc6bf5294f829d62ef61244c315c2886c54c790 (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.cpp | 2 |
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)); |
