Skip to content

Commit

Permalink
Change connect/disconnect logs to debug (#7794)
Browse files Browse the repository at this point in the history
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
  • Loading branch information
terencechain and prylabs-bulldozer[bot] committed Nov 12, 2020
1 parent d1b9f12 commit 52d850f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beacon-chain/p2p/handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (s *Service) AddConnectionHandler(reqFunc func(ctx context.Context, id peer
"direction": conn.Stat().Direction,
"multiAddr": peerMultiaddrString(conn),
"activePeers": len(s.peers.Active()),
}).Info("Peer connected")
}).Debug("Peer connected")
}

// Do not perform handshake on inbound dials.
Expand Down Expand Up @@ -168,7 +168,7 @@ func (s *Service) AddDisconnectionHandler(handler func(ctx context.Context, id p
s.peers.SetConnectionState(conn.RemotePeer(), peers.PeerDisconnected)
// Only log disconnections if we were fully connected.
if priorState == peers.PeerConnected {
log.WithField("activePeers", len(s.peers.Active())).Info("Peer disconnected")
log.WithField("activePeers", len(s.peers.Active())).Debug("Peer disconnected")
}
}()
},
Expand Down

0 comments on commit 52d850f

Please sign in to comment.