aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/zenserver.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-02-13 13:47:51 +0100
committerGitHub Enterprise <[email protected]>2026-02-13 13:47:51 +0100
commitb0a3de5fec8f4da8f9513b02bc2326aa6a0e7bd5 (patch)
treea365bcd2bd339fc275d19bdc78ea3af0d2437386 /src/zenserver/zenserver.cpp
parentadd IHttpRequestFilter to allow server implementation to filter/reject reques... (diff)
downloadzen-b0a3de5fec8f4da8f9513b02bc2326aa6a0e7bd5.tar.xz
zen-b0a3de5fec8f4da8f9513b02bc2326aa6a0e7bd5.zip
logging config move to zenutil (#754)
made logging config options from zenserver available in zen CLI
Diffstat (limited to 'src/zenserver/zenserver.cpp')
-rw-r--r--src/zenserver/zenserver.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/zenserver/zenserver.cpp b/src/zenserver/zenserver.cpp
index 2bafeeaa1..d54357368 100644
--- a/src/zenserver/zenserver.cpp
+++ b/src/zenserver/zenserver.cpp
@@ -152,7 +152,7 @@ ZenServerBase::Initialize(const ZenServerConfig& ServerOptions, ZenServerState::
}
m_HealthService.SetHealthInfo({.DataRoot = ServerOptions.DataDir,
- .AbsLogPath = ServerOptions.AbsLogFile,
+ .AbsLogPath = ServerOptions.LoggingConfig.AbsLogFile,
.HttpServerClass = std::string(ServerOptions.HttpConfig.ServerClass),
.BuildVersion = std::string(ZEN_CFG_VERSION_BUILD_STRING_FULL)});
@@ -387,7 +387,7 @@ ZenServerBase::LogSettingsSummary(const ZenServerConfig& ServerConfig)
// clang-format off
std::list<std::pair<std::string_view, std::string>> Settings = {
{"DataDir"sv, ServerConfig.DataDir.string()},
- {"AbsLogFile"sv, ServerConfig.AbsLogFile.string()},
+ {"AbsLogFile"sv, ServerConfig.LoggingConfig.AbsLogFile.string()},
{"SystemRootDir"sv, ServerConfig.SystemRootDir.string()},
{"ContentDir"sv, ServerConfig.ContentDir.string()},
{"BasePort"sv, fmt::to_string(ServerConfig.BasePort)},
@@ -396,13 +396,13 @@ ZenServerBase::LogSettingsSummary(const ZenServerConfig& ServerConfig)
{"IsPowerCycle"sv, fmt::to_string(ServerConfig.IsPowerCycle)},
{"IsTest"sv, fmt::to_string(ServerConfig.IsTest)},
{"Detach"sv, fmt::to_string(ServerConfig.Detach)},
- {"NoConsoleOutput"sv, fmt::to_string(ServerConfig.NoConsoleOutput)},
- {"QuietConsole"sv, fmt::to_string(ServerConfig.QuietConsole)},
+ {"NoConsoleOutput"sv, fmt::to_string(ServerConfig.LoggingConfig.NoConsoleOutput)},
+ {"QuietConsole"sv, fmt::to_string(ServerConfig.LoggingConfig.QuietConsole)},
{"CoreLimit"sv, fmt::to_string(ServerConfig.CoreLimit)},
{"IsDedicated"sv, fmt::to_string(ServerConfig.IsDedicated)},
{"ShouldCrash"sv, fmt::to_string(ServerConfig.ShouldCrash)},
{"ChildId"sv, ServerConfig.ChildId},
- {"LogId"sv, ServerConfig.LogId},
+ {"LogId"sv, ServerConfig.LoggingConfig.LogId},
{"Sentry DSN"sv, ServerConfig.SentryConfig.Dsn.empty() ? "not set" : ServerConfig.SentryConfig.Dsn},
{"Sentry Environment"sv, ServerConfig.SentryConfig.Environment},
{"Statsd Enabled"sv, fmt::to_string(ServerConfig.StatsConfig.Enabled)},
@@ -467,7 +467,7 @@ ZenServerMain::Run()
ZEN_OTEL_SPAN("SentryInit");
std::string SentryDatabasePath = (m_ServerOptions.DataDir / ".sentry-native").string();
- std::string SentryAttachmentPath = m_ServerOptions.AbsLogFile.string();
+ std::string SentryAttachmentPath = m_ServerOptions.LoggingConfig.AbsLogFile.string();
Sentry.Initialize({.DatabasePath = SentryDatabasePath,
.AttachmentsPath = SentryAttachmentPath,