From 7c72bdfd6858ff7f74b576744d16f732e87e78c0 Mon Sep 17 00:00:00 2001 From: Khalil Claybon Date: Thu, 5 Sep 2024 14:40:22 -0400 Subject: [PATCH] change sample size log from warn to debug --- .../validation/control_message_validation_inspector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/p2p/inspector/validation/control_message_validation_inspector.go b/network/p2p/inspector/validation/control_message_validation_inspector.go index ffdabe38ce9..e88495b28fb 100644 --- a/network/p2p/inspector/validation/control_message_validation_inspector.go +++ b/network/p2p/inspector/validation/control_message_validation_inspector.go @@ -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() {