Skip to content

Commit

Permalink
[FAB-4346] log warning upon bootstrap conn failure
Browse files Browse the repository at this point in the history
This commit adds a warning log when a connection to a bootstrap
peer fails

Change-Id: I4b0c859ef7b4f277cd03b992a45d390459e108e9
Signed-off-by: Yacov Manevich <yacovm@il.ibm.com>
  • Loading branch information
yacovm committed Jun 5, 2017
1 parent f6abb18 commit cb303f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gossip/discovery/discovery_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ func (d *gossipDiscoveryImpl) connect2BootstrapPeers(endpoints []string) {
InternalEndpoint: endpoint,
}
if !d.comm.Ping(peer) {
d.logger.Warning("Failed connecting to bootstrap peer", endpoint)
return
}
d.comm.SendToPeer(peer, req)
Expand Down

0 comments on commit cb303f8

Please sign in to comment.