Debug logs to check on sequencer missing offset. (#2071)
* Debug logs to check on sequencer missing offset. * spelling * close range on value decrement
This commit is contained in:
+12
-2
@@ -144,7 +144,12 @@ func (s *sequencer) push(
|
||||
s.extHighestSN = extModifiedSN
|
||||
} else {
|
||||
if diff < -int64(s.size) {
|
||||
s.logger.Debugw("old packet, can not be sequenced", "extHighestSN", s.extHighestSN, "extModifiedSN", extModifiedSN)
|
||||
s.logger.Debugw(
|
||||
"old packet, cannot be sequenced",
|
||||
"extHighestSN", s.extHighestSN,
|
||||
"extIncomingSN", extIncomingSN,
|
||||
"extModifiedSN", extModifiedSN,
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -152,7 +157,12 @@ func (s *sequencer) push(
|
||||
var err error
|
||||
snOffset, err = s.snRangeMap.GetValue(extModifiedSN)
|
||||
if err != nil {
|
||||
s.logger.Errorw("could not get sequence number offset", err, "extIncomingSN", extIncomingSN, "extModifiedSn", extModifiedSN)
|
||||
s.logger.Errorw(
|
||||
"could not get sequence number offset", err,
|
||||
"extHighestSN", s.extHighestSN,
|
||||
"extIncomingSN", extIncomingSN,
|
||||
"extModifiedSN", extModifiedSN,
|
||||
)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user