Skip to content

Commit

Permalink
f Log all ::Failed as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Oct 27, 2023
1 parent e79d5cd commit 68a7fa6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lightning-transaction-sync/src/electrum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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);
}
}
Expand All @@ -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);
}
}
Expand Down

0 comments on commit 68a7fa6

Please sign in to comment.