diff --git a/node/node_handler.go b/node/node_handler.go index c3fda4e2f6..fbcfde02eb 100644 --- a/node/node_handler.go +++ b/node/node_handler.go @@ -59,7 +59,7 @@ func (node *Node) processSkippedMsgTypeByteValue( func (node *Node) HandleMessage(content []byte, sender libp2p_peer.ID) { // log in-coming metrics node.host.LogRecvMessage(content) - utils.Logger().Info(). + utils.Logger().Debug(). Int64("TotalIn", node.host.GetBandwidthTotals().TotalIn). Float64("RateIn", node.host.GetBandwidthTotals().RateIn). Msg("[metrics][p2p] traffic in in bytes") @@ -453,7 +453,7 @@ func (node *Node) PostConsensusProcessing( // Clear metrics after one consensus cycle node.host.ResetMetrics() - utils.Logger().Info().Msg("[metrics][p2p] Reset after 1 consensus cycle") + utils.Logger().Debug().Msg("[metrics][p2p] Reset after 1 consensus cycle") // Update consensus keys at last so the change of leader status doesn't mess up normal flow if len(newBlock.Header().ShardState()) > 0 { diff --git a/p2p/host.go b/p2p/host.go index 3e77d4303b..a881da7c00 100644 --- a/p2p/host.go +++ b/p2p/host.go @@ -193,7 +193,7 @@ func (host *HostV2) SendMessageToGroups(groups []nodeconfig.GroupID, msg []byte) // log out-going metrics host.metrics.LogSentMessage(int64(len(msg))) } - host.logger.Info(). + host.logger.Debug(). Int64("TotalOut", host.GetBandwidthTotals().TotalOut). Float64("RateOut", host.GetBandwidthTotals().RateOut). Msg("[metrics][p2p] traffic out in bytes")