aboutsummaryrefslogtreecommitdiff
path: root/src/logging.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-07-22 17:10:44 +0100
committerGravatar Sadie Powell2024-07-22 17:10:44 +0100
commitd5fc385bf7c385d1ea3d24d54958e1b6ceb0d623 (patch)
tree49fe653fffc466b3fc69bf28e79f9f999e2013cc /src/logging.cpp
parentRevert module flags to the way they worked in v3. (diff)
Show the right config option when not forking.
Diffstat (limited to 'src/logging.cpp')
-rw-r--r--src/logging.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/logging.cpp b/src/logging.cpp
index 68d214668..15d81d2dd 100644
--- a/src/logging.cpp
+++ b/src/logging.cpp
@@ -217,7 +217,8 @@ void Log::Manager::OpenLogs(bool requiremethods)
// If the server is started in debug mode we don't write logs.
if (ServerInstance->Config->CommandLine.forcedebug)
{
- Normal("LOG", "Not opening loggers because we were started with --(protocol)debug");
+ const auto* option = ServerInstance->Config->CommandLine.forceprotodebug ? "--protocoldebug" : "--debug";
+ Normal("LOG", "Not opening loggers because we were started with {}", option);
return;
}