Browse Source

Log sendrawtransaction errors as warning not debug

master
Kristaps Kaupe 5 years ago
parent
commit
5c85a3d979
No known key found for this signature in database
GPG Key ID: D47B1B4232B55437
  1. 4
      jmclient/jmclient/blockchaininterface.py

4
jmclient/jmclient/blockchaininterface.py

@ -342,10 +342,10 @@ class BitcoinCoreInterface(BlockchainInterface):
try:
txid = self.rpc('sendrawtransaction', [txhex])
except JsonRpcConnectionError as e:
log.debug('error pushing = ' + repr(e))
log.warning('error pushing = ' + repr(e))
return False
except JsonRpcError as e:
log.debug('error pushing = ' + str(e.code) + " " + str(e.message))
log.warning('error pushing = ' + str(e.code) + " " + str(e.message))
return False
return True

Loading…
Cancel
Save