diff --git a/pkg/client/common/discovery/dynamicdiscovery/localservice.go b/pkg/client/common/discovery/dynamicdiscovery/localservice.go index f0f5de0572..5a10c4b4a7 100644 --- a/pkg/client/common/discovery/dynamicdiscovery/localservice.go +++ b/pkg/client/common/discovery/dynamicdiscovery/localservice.go @@ -102,7 +102,7 @@ func (s *LocalService) filterLocalMSP(peers []fab.Peer) []fab.Peer { var filteredPeers []fab.Peer for _, p := range peers { if p.MSPID() != localMSPID { - logger.Warnf("Peer [%s] is not part of the local MSP [%s] but in MSP [%s]", p.URL(), localMSPID, p.MSPID()) + logger.Debugf("Peer [%s] is not part of the local MSP [%s] but in MSP [%s]", p.URL(), localMSPID, p.MSPID()) } else { filteredPeers = append(filteredPeers, p) } diff --git a/pkg/client/common/discovery/dynamicdiscovery/service.go b/pkg/client/common/discovery/dynamicdiscovery/service.go index 1a79688e38..53f2f2aee0 100644 --- a/pkg/client/common/discovery/dynamicdiscovery/service.go +++ b/pkg/client/common/discovery/dynamicdiscovery/service.go @@ -130,7 +130,7 @@ func asPeers(ctx contextAPI.Client, endpoints []*discclient.Peer) []fab.Peer { peerConfig, found := ctx.EndpointConfig().PeerConfig(url) if !found { - logger.Warnf("Peer config not found for url [%s]", url) + logger.Debugf("Peer config not found for url [%s]", url) continue } diff --git a/pkg/client/common/selection/fabricselection/fabricselection.go b/pkg/client/common/selection/fabricselection/fabricselection.go index 5a79d9aef9..8f1714db38 100644 --- a/pkg/client/common/selection/fabricselection/fabricselection.go +++ b/pkg/client/common/selection/fabricselection/fabricselection.go @@ -270,7 +270,7 @@ func asPeers(ctx contextAPI.Client, endpoints []*discclient.Peer) []fab.Peer { for _, endpoint := range endpoints { peer, err := asPeer(ctx, endpoint) if err != nil { - logger.Warnf(err.Error()) + logger.Debugf(err.Error()) continue } peers = append(peers, peer) @@ -283,7 +283,6 @@ func asPeer(ctx contextAPI.Client, endpoint *discclient.Peer) (fab.Peer, error) peerConfig, found := ctx.EndpointConfig().PeerConfig(url) if !found { - logger.Warnf("Peer config not found for url [%s]", url) return nil, errors.Errorf("peer config not found for [%s]", url) } diff --git a/pkg/client/common/selection/fabricselection/selectionfilter.go b/pkg/client/common/selection/fabricselection/selectionfilter.go index e95fea3e9a..1a573b0b68 100644 --- a/pkg/client/common/selection/fabricselection/selectionfilter.go +++ b/pkg/client/common/selection/fabricselection/selectionfilter.go @@ -78,7 +78,7 @@ func asPeerValue(ctx contextAPI.Client, endpoint *discclient.Peer) fab.Peer { if found { url = peerConfig.URL } else { - logger.Warnf("Peer config not found for url [%s]", url) + logger.Debugf("Peer config not found for url [%s]", url) } return &peerEndpointValue{