diff options
| author | 2025-05-27 09:45:53 +0100 | |
|---|---|---|
| committer | 2025-05-27 09:49:05 +0100 | |
| commit | 816c0d1f0c86fed4e9461c01e56d04950433a13c (patch) | |
| tree | 3b8087548d55b9f8741e76081296d954b1fa7a03 /src/logging.cpp | |
| parent | Update INFO for the current state. (diff) | |
Don't allow logging whilst writing out the logger cache.
Diffstat (limited to 'src/logging.cpp')
| -rw-r--r-- | src/logging.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/logging.cpp b/src/logging.cpp index 3912d78f4..3c8e59c29 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -269,6 +269,7 @@ void Log::Manager::OpenLogs(bool requiremethods) if (requiremethods && caching) { // The server has finished starting up so we can write out any cached log messages. + logging = true; for (auto& logger : loggers) { if (logger.dead || !logger.method->AcceptsCachedMessages()) @@ -296,6 +297,7 @@ void Log::Manager::OpenLogs(bool requiremethods) cache.clear(); cache.shrink_to_fit(); caching = false; + logging = false; } CheckLevel(); } |
