Skip to content

Commit

Permalink
[FAB-10878] Change WARN to DEBUG
Browse files Browse the repository at this point in the history
Changed certain logs from WARN to DEBUG.

Change-Id: I97c7019bd7979f39940de78a9f1f700c851966a5
Signed-off-by: Bob Stasyszyn <[email protected]>
  • Loading branch information
bstasyszyn committed Jun 26, 2018
1 parent d1ad22a commit 7b9e156
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/common/discovery/dynamicdiscovery/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 7b9e156

Please sign in to comment.