Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 7b9e156

Browse files
committed
[FAB-10878] Change WARN to DEBUG
Changed certain logs from WARN to DEBUG. Change-Id: I97c7019bd7979f39940de78a9f1f700c851966a5 Signed-off-by: Bob Stasyszyn <Bob.Stasyszyn@securekey.com>
1 parent d1ad22a commit 7b9e156

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

pkg/client/common/discovery/dynamicdiscovery/localservice.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func (s *LocalService) filterLocalMSP(peers []fab.Peer) []fab.Peer {
102102
var filteredPeers []fab.Peer
103103
for _, p := range peers {
104104
if p.MSPID() != localMSPID {
105-
logger.Warnf("Peer [%s] is not part of the local MSP [%s] but in MSP [%s]", p.URL(), localMSPID, p.MSPID())
105+
logger.Debugf("Peer [%s] is not part of the local MSP [%s] but in MSP [%s]", p.URL(), localMSPID, p.MSPID())
106106
} else {
107107
filteredPeers = append(filteredPeers, p)
108108
}

pkg/client/common/discovery/dynamicdiscovery/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func asPeers(ctx contextAPI.Client, endpoints []*discclient.Peer) []fab.Peer {
130130

131131
peerConfig, found := ctx.EndpointConfig().PeerConfig(url)
132132
if !found {
133-
logger.Warnf("Peer config not found for url [%s]", url)
133+
logger.Debugf("Peer config not found for url [%s]", url)
134134
continue
135135
}
136136

pkg/client/common/selection/fabricselection/fabricselection.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func asPeers(ctx contextAPI.Client, endpoints []*discclient.Peer) []fab.Peer {
270270
for _, endpoint := range endpoints {
271271
peer, err := asPeer(ctx, endpoint)
272272
if err != nil {
273-
logger.Warnf(err.Error())
273+
logger.Debugf(err.Error())
274274
continue
275275
}
276276
peers = append(peers, peer)
@@ -283,7 +283,6 @@ func asPeer(ctx contextAPI.Client, endpoint *discclient.Peer) (fab.Peer, error)
283283

284284
peerConfig, found := ctx.EndpointConfig().PeerConfig(url)
285285
if !found {
286-
logger.Warnf("Peer config not found for url [%s]", url)
287286
return nil, errors.Errorf("peer config not found for [%s]", url)
288287
}
289288

pkg/client/common/selection/fabricselection/selectionfilter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func asPeerValue(ctx contextAPI.Client, endpoint *discclient.Peer) fab.Peer {
7878
if found {
7979
url = peerConfig.URL
8080
} else {
81-
logger.Warnf("Peer config not found for url [%s]", url)
81+
logger.Debugf("Peer config not found for url [%s]", url)
8282
}
8383

8484
return &peerEndpointValue{

0 commit comments

Comments
 (0)