From a22d41b99b35b9cf72d34e7c2bbdd35f9c758f48 Mon Sep 17 00:00:00 2001 From: Sandro Wenzel Date: Sun, 23 Nov 2025 17:45:37 +0100 Subject: [PATCH] o2-sim: Avoid duplicate printout of detector list --- Common/SimConfig/src/SimConfig.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Common/SimConfig/src/SimConfig.cxx b/Common/SimConfig/src/SimConfig.cxx index 2c28497fa4237..15879687872d5 100644 --- a/Common/SimConfig/src/SimConfig.cxx +++ b/Common/SimConfig/src/SimConfig.cxx @@ -200,7 +200,11 @@ bool SimConfig::determineActiveModulesList(const std::string& version, std::vect return false; } modules = map[version]; - LOGP(info, "Running with official detector version '{}'", version); + static std::string last_version{}; // prevent multiple printouts of same message + if (last_version != version) { + LOGP(info, "Running with official detector version '{}'", version); + last_version = version; + } } // check if specified modules are in list if (inputargs.size() != 1 || inputargs[0] != "all") {