From 68a7fa6dfaab5a49ec2a6354e1d7893799bc1f91 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Fri, 27 Oct 2023 13:02:58 +0200 Subject: [PATCH] f Log all `::Failed` as errors --- lightning-transaction-sync/src/electrum.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lightning-transaction-sync/src/electrum.rs b/lightning-transaction-sync/src/electrum.rs index 9df0f178a53..6d3ff2c2117 100644 --- a/lightning-transaction-sync/src/electrum.rs +++ b/lightning-transaction-sync/src/electrum.rs @@ -234,7 +234,7 @@ where watched_script_pubkeys.push(tx_out.script_pubkey.clone()); } else { debug_assert!(false, "Failed due to retrieving invalid tx data."); - log_trace!(self.logger, "Failed due to retrieving invalid tx data."); + log_error!(self.logger, "Failed due to retrieving invalid tx data."); return Err(InternalError::Failed); } } @@ -273,7 +273,7 @@ where confirmed_txs.push(ConfirmedTx { tx: tx.clone(), block_header, block_height: prob_conf_height, pos: merkle_res.pos }); } Err(e) => { - log_trace!(self.logger, "Failed to retrieve block header for height {}: {}.", prob_conf_height, e); + log_error!(self.logger, "Failed to retrieve block header for height {}: {}.", prob_conf_height, e); return Err(InternalError::Failed); } } @@ -314,7 +314,7 @@ where confirmed_txs.push(ConfirmedTx { tx: tx.clone(), block_header, block_height: prob_conf_height, pos: merkle_res.pos }); } Err(e) => { - log_trace!(self.logger, "Failed to retrieve block header for height {}: {}.", prob_conf_height, e); + log_error!(self.logger, "Failed to retrieve block header for height {}: {}.", prob_conf_height, e); return Err(InternalError::Failed); } } @@ -336,7 +336,7 @@ where } } Err(e) => { - log_trace!(self.logger, "Failed to script histories: {}.", e); + log_error!(self.logger, "Failed to script histories: {}.", e); return Err(InternalError::Failed); } }