Skip to content

Commit 13194fa

Browse files
committed
Adjust gossip logging levels
This commit: 1) Changes an Entering logging event from Info to Debug 2) Changes a logging event in case of receiving a message (or an API call) regarding a channel that isn't known to the peer from Warn to Debug Change-Id: If10cd1d0ac1153481e905f2c78f9a2f747834ab5 Signed-off-by: Yacov Manevich <[email protected]>
1 parent 96b1b90 commit 13194fa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gossip/discovery/discovery_impl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ func (d *gossipDiscoveryImpl) createAliveMessage(includeInternalEndpoint bool) *
716716
}
717717

718718
func (d *gossipDiscoveryImpl) learnExistingMembers(aliveArr []*proto.SignedGossipMessage) {
719-
d.logger.Infof("Entering: learnedMembers={%v}", aliveArr)
719+
d.logger.Debugf("Entering: learnedMembers={%v}", aliveArr)
720720
defer d.logger.Debug("Exiting")
721721

722722
d.lock.Lock()

gossip/gossip/gossip_impl.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ func (g *gossipServiceImpl) handleMessage(m proto.ReceivedMessage) {
315315
}
316316
}
317317
if !g.toDie() {
318-
g.logger.Warning("No such channel", msg.Channel, "discarding message", msg)
318+
g.logger.Debug("No such channel", msg.Channel, "discarding message", msg)
319319
}
320320
} else {
321321
if m.GetGossipMessage().IsLeadershipMsg() {
@@ -600,7 +600,7 @@ func (g *gossipServiceImpl) Peers() []discovery.NetworkMember {
600600
func (g *gossipServiceImpl) PeersOfChannel(channel common.ChainID) []discovery.NetworkMember {
601601
gc := g.chanState.getGossipChannelByChainID(channel)
602602
if gc == nil {
603-
g.logger.Warning("No such channel", channel)
603+
g.logger.Debug("No such channel", channel)
604604
return nil
605605
}
606606

@@ -640,7 +640,7 @@ func (g *gossipServiceImpl) UpdateMetadata(md []byte) {
640640
func (g *gossipServiceImpl) UpdateChannelMetadata(md []byte, chainID common.ChainID) {
641641
gc := g.chanState.getGossipChannelByChainID(chainID)
642642
if gc == nil {
643-
g.logger.Warning("No such channel", chainID)
643+
g.logger.Debug("No such channel", chainID)
644644
return
645645
}
646646
stateInfMsg, err := g.createStateInfoMsg(md, chainID)

0 commit comments

Comments
 (0)