Mercurial > hg > orthanc
changeset 7056:a0dd2f56eeb1
recovery of option --logs-no-thread that was left undocumented in 1.12.11
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Wed, 12 Aug 2026 08:37:00 +0200 |
| parents | 923bec010d54 |
| children | 1a4929bdd068 |
| files | OrthancServer/Sources/main.cpp |
| diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Sources/main.cpp Tue Aug 11 19:00:41 2026 +0200 +++ b/OrthancServer/Sources/main.cpp Wed Aug 12 08:37:00 2026 +0200 @@ -2153,6 +2153,7 @@ static const char* const OPTION_LOGFILE = "logfile"; static const char* const OPTION_VERBOSE = "verbose"; static const char* const OPTION_TRACE = "trace"; + static const char* const OPTION_LOGS_NO_THREAD = "logs-no-thread"; boost::program_options::options_description allWithoutHidden; std::vector<std::string> orderSensitiveArguments; @@ -2184,7 +2185,10 @@ (OPTION_LOGFILE, boost::program_options::value<std::string>()->value_name("file"), "file where to store the log of Orthanc (by default, the log is dumped to stderr)") (OPTION_VERBOSE, "be verbose in logs") - (OPTION_TRACE, "highest verbosity in logs (for debug)"); + (OPTION_TRACE, "highest verbosity in logs (for debug)") + + // New in Orthanc 1.12.12 + (OPTION_LOGS_NO_THREAD, "remove thread names from logs"); boost::program_options::options_description finetuning("Fine-tuning of log categories"); @@ -2399,6 +2403,11 @@ return ExportCheatSheet(file); } + if (options.count(OPTION_LOGS_NO_THREAD) == 1) + { + Logging::SetThreadNamesEnabled(false); + } + if (options.count(OPTION_INPUTS) != 0) { const std::vector<std::string>& inputs = options[OPTION_INPUTS].as<std::vector<std::string> >();
