Skip to content

Commit bce5737

Browse files
committed
[FAB-10286] Remove redundant debug messages
...and fix some typos Change-Id: I81fc5566cbae60349579de861b0fc74237212255 Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
1 parent 060c2b6 commit bce5737

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

core/chaincode/handler.go

+3-5
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (c CheckInstantiationPolicyFunc) CheckInstantiationPolicy(name, version str
8080
}
8181

8282
// QueryResponseBuilder is responsible for building QueryResponse messages for query
83-
// transcations initiated by chaincode.
83+
// transactions initiated by chaincode.
8484
type QueryResponseBuilder interface {
8585
BuildQueryResponse(txContext *TransactionContext, iter commonledger.ResultsIterator, iterID string) (*pb.QueryResponse, error)
8686
}
@@ -155,10 +155,9 @@ type Handler struct {
155155

156156
// handleMessage is called by ProcessStream to dispatch messages.
157157
func (h *Handler) handleMessage(msg *pb.ChaincodeMessage) error {
158-
chaincodeLogger.Debugf("[%s] Fabric side Handling ChaincodeMessage of type: %s in state %s", shorttxid(msg.Txid), msg.Type, h.state)
158+
chaincodeLogger.Debugf("[%s] Fabric side handling ChaincodeMessage of type: %s in state %s", shorttxid(msg.Txid), msg.Type, h.state)
159159

160160
if msg.Type == pb.ChaincodeMessage_KEEPALIVE {
161-
chaincodeLogger.Debug("Received KEEPALIVE Response")
162161
return nil
163162
}
164163

@@ -168,7 +167,7 @@ func (h *Handler) handleMessage(msg *pb.ChaincodeMessage) error {
168167
case Ready:
169168
return h.handleMessageReadyState(msg)
170169
default:
171-
return errors.Errorf("handle message: invalid state %s for trnansaction %s", h.state, msg.Txid)
170+
return errors.Errorf("handle message: invalid state %s for transaction %s", h.state, msg.Txid)
172171
}
173172
}
174173

@@ -391,7 +390,6 @@ func (h *Handler) ProcessStream(stream ccintf.ChaincodeStream) error {
391390
}
392391

393392
in := rMsg.msg
394-
chaincodeLogger.Debugf("[%s] Received message %s from shim", shorttxid(in.Txid), in.Type)
395393

396394
err := h.handleMessage(in)
397395
if err != nil {

0 commit comments

Comments
 (0)