Skip to content

Commit

Permalink
Merge pull request #6441 from onflow/khalil/sample-size-log
Browse files Browse the repository at this point in the history
Verbose sample size logs
  • Loading branch information
kc1116 authored Sep 6, 2024
2 parents 5e2d76f + e515ac6 commit 59a9dc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ func (c *ControlMsgValidationInspector) truncateIWantMessageIds(from peer.ID, rp
sampleSize := int(10 * lastHighest)
if sampleSize == 0 || sampleSize > c.config.IWant.MessageIdCountThreshold {
// invalid or 0 sample size is suspicious
lg.Warn().Str(logging.KeySuspicious, "true").Msg("zero or invalid sample size, using default max sample size")
lg.Debug().Str(logging.KeySuspicious, "true").Msg("zero or invalid sample size, using default max sample size")
sampleSize = c.config.IWant.MessageIdCountThreshold
}
for _, iWant := range rpc.GetControl().GetIwant() {
Expand Down

0 comments on commit 59a9dc7

Please sign in to comment.