Fixes error logging

This commit is contained in:
Sergi Delgado Segura
2019-10-11 19:32:44 +01:00
parent b78c6ebfe7
commit a916c67cc5
3 changed files with 9 additions and 9 deletions

View File

@@ -30,7 +30,7 @@ def check_tx_in_chain(tx_id, logger=Logger(), tx_label='Transaction'):
else:
# ToDO: Unhandled errors, check this properly
logger.error("JSONRPCException.", method='tools.check_tx_in_chain', error_code=e)
logger.error("JSONRPCException.", method='tools.check_tx_in_chain', error=e.error)
return tx_in_chain, confirmations