Skip to content

Commit b4f5e43

Browse files
remove info message and print warning only once
1 parent 6c6d69f commit b4f5e43

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Detectors/TPC/calibration/src/VDriftHelper.cxx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ void VDriftHelper::extractCCDBInputs(ProcessingContext& pc, bool laser, bool its
166166
if (mIsTPScalingPossible) {
167167
// if no new VDrift object was loaded and if delta TP is small, do not rescale and return
168168
if (!mUpdated && std::abs(tp - vd.refTP) < 1e-5) {
169-
LOGP(info, "Do not rescale VDrift {}, T/P change is small: {} -> {}", vd.getVDrift(), vd.refTP, tp);
170169
return;
171170
}
172171
mUpdated = true;
@@ -251,7 +250,11 @@ bool VDriftHelper::extractTPForVDrift(VDriftCorrFact& vdrift, int64_t tsStepMS)
251250
const int64_t tsEnd = vdrift.lastTime;
252251

253252
if (tsStart == tsEnd) {
254-
LOGP(warn, "VDriftHelper: Cannot extract T/P for VDrift with identical start/end time {}!", tsStart);
253+
static bool warned = false;
254+
if (!warned) {
255+
warned = true;
256+
LOGP(warn, "VDriftHelper: Cannot extract T/P for VDrift with identical start/end time {}!", tsStart);
257+
}
255258
return false;
256259
}
257260

0 commit comments

Comments
 (0)