Commit d8636618 authored by Gari Singh's avatar Gari Singh Committed by Gerrit Code Review
Browse files

Merge "[FAB-10132] Align outlier peer CLI success msg log lvl"

parents 6f550524 fab5d976
......@@ -162,7 +162,6 @@ var _ = Describe("Peer", func() {
By("fetch channel block file")
fetchRun := components.Peer()
fetchRun.ConfigDir = tempDir
fetchRun.LogLevel = "debug"
fetchRun.MSPConfigPath = filepath.Join(cryptoDir, "peerOrganizations", "org1.example.com", "users", "Admin@org1.example.com", "msp")
fRunner := fetchRun.FetchChannel("mychan", filepath.Join(tempDir, "mychan.block"), "0", "127.0.0.1:8050")
execute(fRunner)
......
......@@ -216,7 +216,6 @@ func (w *World) SetupChannel() error {
p = w.Components.Peer()
p.ConfigDir = filepath.Join(w.Rootpath, "org1.example.com_0")
p.LogLevel = "debug"
p.MSPConfigPath = filepath.Join(w.Rootpath, "crypto", "peerOrganizations", "org1.example.com", "users", "Admin@org1.example.com", "msp")
adminRunner := p.CreateChannel(w.Deployment.Channel, filepath.Join(w.Rootpath, fmt.Sprintf("%s_tx.pb", w.Deployment.Channel)), w.Deployment.Orderer)
execute(adminRunner)
......@@ -225,7 +224,6 @@ func (w *World) SetupChannel() error {
for peer := 0; peer < peerOrg.PeerCount; peer++ {
p = w.Components.Peer()
peerDir := fmt.Sprintf("%s_%d", peerOrg.Domain, peer)
p.LogLevel = "debug"
p.ConfigDir = filepath.Join(w.Rootpath, peerDir)
p.MSPConfigPath = filepath.Join(w.Rootpath, "crypto", "peerOrganizations", peerOrg.Domain, "users", fmt.Sprintf("Admin@%s", peerOrg.Domain), "msp")
adminRunner = p.FetchChannel(w.Deployment.Channel, filepath.Join(w.Rootpath, peerDir, fmt.Sprintf("%s_block.pb", w.Deployment.Channel)), "0", w.Deployment.Orderer)
......
......@@ -84,7 +84,7 @@ func install(msg proto.Message, cf *ChaincodeCmdFactory) error {
}
if proposalResponse != nil {
logger.Debugf("Installed remotely %v", proposalResponse)
logger.Infof("Installed remotely %v", proposalResponse)
}
return nil
......
......@@ -108,10 +108,10 @@ func (r *deliverClient) readBlock() (*common.Block, error) {
switch t := msg.Type.(type) {
case *ab.DeliverResponse_Status:
logger.Debugf("Got status: %v", t)
logger.Infof("Got status: %v", t)
return nil, fmt.Errorf("can't read the block: %v", t)
case *ab.DeliverResponse_Block:
logger.Debugf("Received block: %v", t.Block.Header.Number)
logger.Infof("Received block: %v", t.Block.Header.Number)
r.client.Recv() // Flush the success message
return t.Block, nil
default:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment