From 8dab3addd1d8130799fc834468fc4743c509c66b Mon Sep 17 00:00:00 2001 From: Dimitri De Jonghe Date: Wed, 23 Nov 2016 22:42:16 +0100 Subject: [PATCH] chore: fix printing out transactions on block creation instead of printing the list `block.transactions` print `len(block.transactions)` --- bigchaindb/pipelines/block.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigchaindb/pipelines/block.py b/bigchaindb/pipelines/block.py index 4142b234..9039938b 100644 --- a/bigchaindb/pipelines/block.py +++ b/bigchaindb/pipelines/block.py @@ -116,7 +116,7 @@ class BlockPipeline: Returns: :class:`~bigchaindb.models.Block`: The Block. """ - logger.info('Write new block %s with %s transactions', block.id, block.transactions) + logger.info('Write new block %s with %s transactions', block.id, len(block.transactions)) self.bigchain.write_block(block) return block