Skip to content

Commit

Permalink
remove needless info from endorser log
Browse files Browse the repository at this point in the history
Deploy proposal contains the code bytes. It may take up a lot of space.
And printing bytes brings little readable information. Now while endorsing,
the unreadable log will fill the full screen. Check any jenkins log will
see that.

Change-Id: I8ff1a5fc4b587b9a894057b13be04a9812e096ff
Signed-off-by: jiangyaoguo <jiangyaoguo@gmail.com>
  • Loading branch information
jiangyaoguo committed Dec 8, 2016
1 parent 87a0ce8 commit 246d25d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/endorser/endorser.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func (e *Endorser) getCDSFromLCCC(ctx context.Context, chainID string, txid stri

//endorse the proposal by calling the ESCC
func (e *Endorser) endorseProposal(ctx context.Context, chainID string, txid string, proposal *pb.Proposal, simRes []byte, event *pb.ChaincodeEvent, visibility []byte, ccid *pb.ChaincodeID, txsim ledger.TxSimulator) ([]byte, error) {
endorserLogger.Infof("endorseProposal starts for proposal %p, chainID %s, simRes %p event %p, visibility %p, ccid %s", chainID, proposal, simRes, event, visibility, ccid)
endorserLogger.Infof("endorseProposal starts for chainID %s, ccid %s", chainID, ccid)

// 1) extract the chaincodeDeploymentSpec for the chaincode we are invoking; we need it to get the escc
var escc string
Expand Down

0 comments on commit 246d25d

Please sign in to comment.