From 89467bb2a858ae60dbcc8069d67c848a56231c9c Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Wed, 4 Oct 2023 19:06:35 +0200 Subject: added --quiet option to suppress default logging to stdout (#446) added --quiet option for zenserver to suppress default logging to stdout --- src/zenserver/config.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/zenserver/config.cpp') diff --git a/src/zenserver/config.cpp b/src/zenserver/config.cpp index c0a97ce5b..b7699900f 100644 --- a/src/zenserver/config.cpp +++ b/src/zenserver/config.cpp @@ -787,6 +787,7 @@ ParseConfigFile(const std::filesystem::path& Path, LuaOptions.AddOption("server.contentdir"sv, ServerOptions.ContentDir, "content-dir"sv); LuaOptions.AddOption("server.abslog"sv, ServerOptions.AbsLogFile, "abslog"sv); LuaOptions.AddOption("server.debug"sv, ServerOptions.IsDebug, "debug"sv); + LuaOptions.AddOption("server.noconsole"sv, ServerOptions.NoConsoleOutput, "quiet"sv); ////// objectstore LuaOptions.AddOption("server.objectstore.enabled"sv, ServerOptions.ObjectStoreEnabled, "objectstore-enabled"sv); @@ -1000,6 +1001,7 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions) options.add_options()("sentry-allow-personal-info", "Allow personally identifiable information in sentry crash reports", cxxopts::value(ServerOptions.SentryAllowPII)->default_value("false")); + options.add_options()("quiet", "Disable console logging", cxxopts::value(ServerOptions.NoConsoleOutput)->default_value("false")); options.add_option("security", "", -- cgit v1.2.3