From 5c85a3d979c44848cd5bffcd353f77e1f5a15e75 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Thu, 10 Sep 2020 00:07:33 +0300 Subject: [PATCH] Log sendrawtransaction errors as warning not debug --- jmclient/jmclient/blockchaininterface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jmclient/jmclient/blockchaininterface.py b/jmclient/jmclient/blockchaininterface.py index a306fc7..3060f2b 100644 --- a/jmclient/jmclient/blockchaininterface.py +++ b/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