Logging reduction. (#2165)

Move some to Debugw and add sampling for a few.
This commit is contained in:
Raja Subramanian
2023-10-21 10:26:30 +05:30
committed by GitHub
parent 39edfab2b5
commit b591c56aa3
5 changed files with 101 additions and 79 deletions
+1 -8
View File
@@ -1581,14 +1581,7 @@ func (f *Forwarder) processSourceSwitch(extPkt *buffer.ExtPacket, layer int32) e
extNextTS = extExpectedTS
} else if diffSeconds > ResumeBehindHighTresholdSeconds {
// could be due to incorrect reference calculation
f.logger.Infow(
"resume, reference very far behind",
"layer", layer,
"extExpectedTS", extExpectedTS,
"extRefTS", extRefTS,
"extLastTS", extLastTS,
"diffSeconds", diffSeconds,
)
logTransition("resume, reference very far behind", extExpectedTS, extRefTS, extLastTS, diffSeconds)
extNextTS = extExpectedTS
} else {
extNextTS = extRefTS