From 501d5e3b0be37ebceda96240af1e4d8df927d68f Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Wed, 14 Aug 2024 09:23:19 +0200 Subject: improve logging on main failure (#111) * add support for indenting callstack output * Explicitly catch option-parse error and reduce log spam on bad parameters * add command line to sentry error reports * log command line at startup --- 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 55c90cbe1..867089ded 100644 --- a/src/zenserver/config.cpp +++ b/src/zenserver/config.cpp @@ -565,6 +565,8 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions) } #endif + ServerOptions.CommandLine = fmt::format("{}", fmt::join(std::span((const char**)argv, size_t(argc)), " ")); + // Note to those adding future options; std::filesystem::path-type options // must be read into a std::string first. As of cxxopts-3.0.0 it uses a >> // stream operator to convert argv value into the options type. std::fs::path -- cgit v1.2.3