# HG changeset patch # User Sebastien Jodogne # Date 1786516620 -7200 # Node ID a0dd2f56eeb17dcc1713792406e65d1e455a779b # Parent 923bec010d541bae5ccf4a09d06bcef3c5cfa8a2 recovery of option --logs-no-thread that was left undocumented in 1.12.11 diff -r 923bec010d54 -r a0dd2f56eeb1 OrthancServer/Sources/main.cpp --- 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 orderSensitiveArguments; @@ -2184,7 +2185,10 @@ (OPTION_LOGFILE, boost::program_options::value()->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& inputs = options[OPTION_INPUTS].as >();