Skip to content

Commit

Permalink
Less Scary Connection Logs (#5480)
Browse files Browse the repository at this point in the history
* change logs
* Merge refs/heads/master into lessScaryLogs
* Merge refs/heads/master into lessScaryLogs
* Merge refs/heads/master into lessScaryLogs
  • Loading branch information
nisdas authored Apr 18, 2020
1 parent 9cec33f commit c0ca567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beacon-chain/p2p/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ func (s *Service) FindPeersWithSubnet(index uint64) (bool, error) {
}
s.peers.Add(node.Record(), info.ID, multiAddr, network.DirUnknown)
if err := s.connectWithPeer(*info); err != nil {
log.Errorf("Could not connect with peer %s: %v", info.String(), err)
log.WithError(err).Debugf("Could not connect with peer %s", info.String())
}
exists = true
}
Expand Down Expand Up @@ -503,7 +503,7 @@ func (s *Service) connectWithAllPeers(multiAddrs []ma.Multiaddr) {
// make each dial non-blocking
go func(info peer.AddrInfo) {
if err := s.connectWithPeer(info); err != nil {
log.Errorf("Could not connect with peer %s: %v", info.String(), err)
log.WithError(err).Debugf("Could not connect with peer %s", info.String())
}
}(info)
}
Expand Down

0 comments on commit c0ca567

Please sign in to comment.