From 4a08abf4e80822a70e15a25e4499572f5033e051 Mon Sep 17 00:00:00 2001 From: z-bowen Date: Tue, 28 Aug 2018 17:43:36 +0200 Subject: [PATCH] Problem: `upsert-validator show` returning the response message, rather than printing it to stdout Solution: Sent it to `logger.info` instead --- bigchaindb/commands/bigchaindb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigchaindb/commands/bigchaindb.py b/bigchaindb/commands/bigchaindb.py index 89a15b2c..95b6f26f 100644 --- a/bigchaindb/commands/bigchaindb.py +++ b/bigchaindb/commands/bigchaindb.py @@ -211,7 +211,7 @@ def run_upsert_validator_show(args, bigchain): node_id = new_validator['node_id'] status = election.get_status(bigchain) - return f'public_key={public_key}\npower={power}\nnode_id={node_id}\nstatus={status}' + logger.info(f'public_key={public_key}\npower={power}\nnode_id={node_id}\nstatus={status}') def _run_init():