Skip to content

Commit 68a7fa6

Browse files
committed
f Log all ::Failed as errors
1 parent e79d5cd commit 68a7fa6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning-transaction-sync/src/electrum.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ where
234234
watched_script_pubkeys.push(tx_out.script_pubkey.clone());
235235
} else {
236236
debug_assert!(false, "Failed due to retrieving invalid tx data.");
237-
log_trace!(self.logger, "Failed due to retrieving invalid tx data.");
237+
log_error!(self.logger, "Failed due to retrieving invalid tx data.");
238238
return Err(InternalError::Failed);
239239
}
240240
}
@@ -273,7 +273,7 @@ where
273273
confirmed_txs.push(ConfirmedTx { tx: tx.clone(), block_header, block_height: prob_conf_height, pos: merkle_res.pos });
274274
}
275275
Err(e) => {
276-
log_trace!(self.logger, "Failed to retrieve block header for height {}: {}.", prob_conf_height, e);
276+
log_error!(self.logger, "Failed to retrieve block header for height {}: {}.", prob_conf_height, e);
277277
return Err(InternalError::Failed);
278278
}
279279
}
@@ -314,7 +314,7 @@ where
314314
confirmed_txs.push(ConfirmedTx { tx: tx.clone(), block_header, block_height: prob_conf_height, pos: merkle_res.pos });
315315
}
316316
Err(e) => {
317-
log_trace!(self.logger, "Failed to retrieve block header for height {}: {}.", prob_conf_height, e);
317+
log_error!(self.logger, "Failed to retrieve block header for height {}: {}.", prob_conf_height, e);
318318
return Err(InternalError::Failed);
319319
}
320320
}
@@ -336,7 +336,7 @@ where
336336
}
337337
}
338338
Err(e) => {
339-
log_trace!(self.logger, "Failed to script histories: {}.", e);
339+
log_error!(self.logger, "Failed to script histories: {}.", e);
340340
return Err(InternalError::Failed);
341341
}
342342
}

0 commit comments

Comments
 (0)