Skip to content

Commit a22d41b

Browse files
committed
o2-sim: Avoid duplicate printout of detector list
1 parent 0b946d9 commit a22d41b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Common/SimConfig/src/SimConfig.cxx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,11 @@ bool SimConfig::determineActiveModulesList(const std::string& version, std::vect
200200
return false;
201201
}
202202
modules = map[version];
203-
LOGP(info, "Running with official detector version '{}'", version);
203+
static std::string last_version{}; // prevent multiple printouts of same message
204+
if (last_version != version) {
205+
LOGP(info, "Running with official detector version '{}'", version);
206+
last_version = version;
207+
}
204208
}
205209
// check if specified modules are in list
206210
if (inputargs.size() != 1 || inputargs[0] != "all") {

0 commit comments

Comments
 (0)