aboutsummaryrefslogtreecommitdiff
path: root/src/logging.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-07-03 15:22:55 +0100
committerGravatar Sadie Powell2023-07-03 18:43:24 +0100
commit130966707f0c59ef8948b31ee6633025ae8fb647 (patch)
tree85c47eb277c60edc8bfddc5fee60f83022e0dbef /src/logging.cpp
parentMove ServerLimits inside ServerConfig. (diff)
Refactor the ServerConfig class.
All fields are now ordered in the most memory efficient way and all public fields use the correct case. Every member has been redocumented to match the current documentation style.
Diffstat (limited to 'src/logging.cpp')
-rw-r--r--src/logging.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logging.cpp b/src/logging.cpp
index 11505ccb4..3bd4fc66f 100644
--- a/src/logging.cpp
+++ b/src/logging.cpp
@@ -189,14 +189,14 @@ void Log::Manager::EnableDebugMode()
void Log::Manager::OpenLogs(bool requiremethods)
{
// If the server is started in debug mode we don't write logs.
- if (ServerInstance->Config->cmdline.forcedebug)
+ if (ServerInstance->Config->CommandLine.forcedebug)
{
Normal("LOG", "Not opening loggers because we were started with --debug");
return;
}
// If the server is started with logging disabled we don't write logs.
- if (!ServerInstance->Config->cmdline.writelog)
+ if (!ServerInstance->Config->CommandLine.writelog)
{
Normal("LOG", "Not opening loggers because we were started with --nolog");
return;