aboutsummaryrefslogtreecommitdiffstats
path: root/src/logging.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/logging.cpp')
-rw-r--r--src/logging.cpp2
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();
}