aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/config.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-12-19 10:55:11 +0100
committerGitHub <[email protected]>2023-12-19 10:55:11 +0100
commit7451d3ab8aa7be6405b6bbbe5e17dcb3ea29e766 (patch)
tree67b166d09365c45c43d7d446a6f0816c1428274b /src/zenserver/config.cpp
parentvarious TSAN/ASAN/LeakAnalyzer fixes (#622) (diff)
downloadzen-7451d3ab8aa7be6405b6bbbe5e17dcb3ea29e766.tar.xz
zen-7451d3ab8aa7be6405b6bbbe5e17dcb3ea29e766.zip
ensure we can build without trace (#619)
`xmake config -zentrace=n` would previously not build cleanly
Diffstat (limited to 'src/zenserver/config.cpp')
-rw-r--r--src/zenserver/config.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zenserver/config.cpp b/src/zenserver/config.cpp
index e3286bfb8..012925b51 100644
--- a/src/zenserver/config.cpp
+++ b/src/zenserver/config.cpp
@@ -429,9 +429,11 @@ ParseConfigFile(const std::filesystem::path& Path,
ServerOptions.HttpServerConfig.HttpSys.IsRequestLoggingEnabled,
"httpsys-enable-request-logging"sv);
+#if ZEN_WITH_TRACE
////// trace
LuaOptions.AddOption("trace.host"sv, ServerOptions.TraceHost, "tracehost"sv);
LuaOptions.AddOption("trace.file"sv, ServerOptions.TraceFile, "tracefile"sv);
+#endif
////// stats
LuaOptions.AddOption("stats.enable"sv, ServerOptions.StatsConfig.Enabled);