Problem: upsert-validator show returning the response message, rather than printing it to stdout

Solution: Sent it to `logger.info` instead
This commit is contained in:
z-bowen 2018-08-28 17:43:36 +02:00
parent a307c531c3
commit 4a08abf4e8

View File

@ -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():