Skip to content

Commit a6f2aec

Browse files
committed
MID: Downscale InfoLogger errors temporarily
1 parent 354fbb1 commit a6f2aec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Detectors/MUON/MID/Raw/src/ELinkManager.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ void ELinkManager::onDone(const ELinkDecoder& decoder, uint8_t crateId, uint8_t
7878
// To avoid flooding the logs, we warn only the first time we see it.
7979
auto& err = mErrors[uniqueId];
8080
++err;
81-
if (err == 1) {
81+
static unsigned int nTotalErr = 0;
82+
if (err == 1 && nTotalErr++ < 3) {
8283
// This is the first time we see this faulty board, so we report it.
8384
ROBoard board{decoder.getStatusWord(), decoder.getTriggerWord(), raw::makeUniqueLocID(crateId, locId), decoder.getInputs()};
8485
for (int ich = 0; ich < 4; ++ich) {

0 commit comments

Comments
 (0)