Skip to content

Commit

Permalink
[FAB-7003] Remove block from debug logs
Browse files Browse the repository at this point in the history
Change-Id: I6285ce830d6be972b636f34e94f8c363f5f19526
Signed-off-by: Divyank Katira <[email protected]>
  • Loading branch information
d1vyank committed Nov 16, 2017
1 parent 9d2609c commit 4ae6eda
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/fabric-client/events/eventhub.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func (eventHub *EventHub) Recv(msg *pb.Event) (bool, error) {
switch msg.Event.(type) {
case *pb.Event_Block:
blockEvent := msg.Event.(*pb.Event_Block)
logger.Debugf("Recv blockEvent:%v\n", blockEvent)
logger.Debugf("Recv blockEvent for block number [%d]", blockEvent.Block.Header.Number)
for _, v := range eventHub.getBlockRegistrants() {
v(blockEvent.Block)
}
Expand All @@ -287,7 +287,7 @@ func (eventHub *EventHub) Recv(msg *pb.Event) (bool, error) {
return
case *pb.Event_ChaincodeEvent:
ccEvent := msg.Event.(*pb.Event_ChaincodeEvent)
logger.Debugf("Recv ccEvent:%v\n", ccEvent)
logger.Debugf("Recv ccEvent for txID [%s]", ccEvent.ChaincodeEvent.TxId)
if ccEvent != nil {
eventHub.notifyChaincodeRegistrants("", ccEvent.ChaincodeEvent, false)
}
Expand Down Expand Up @@ -387,7 +387,6 @@ func (eventHub *EventHub) UnregisterTxEvent(txnID apitxn.TransactionID) {
* from the fabric
*/
func (eventHub *EventHub) txCallback(block *common.Block) {
logger.Debugf("txCallback block=%v\n", block)
txFilter := util.TxValidationFlags(block.Metadata.Metadata[common.BlockMetadataIndex_TRANSACTIONS_FILTER])
for i, v := range block.Data.Data {

Expand Down

0 comments on commit 4ae6eda

Please sign in to comment.