Skip to content

Commit

Permalink
change sample size log from warn to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kc1116 committed Sep 12, 2024
1 parent 0cd570f commit 7c72bdf
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 7c72bdf

Please sign in to comment.