Skip to content

Commit 7b22007

Browse files
committed
using display insted of debug
1 parent 35bc386 commit 7b22007

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

lightning/src/chain/chainmonitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ where C::Target: chain::Filter,
403403
script_pubkey: output.script_pubkey,
404404
};
405405
log_trace!(self.logger,
406-
"Adding monitoring for spends of outpoint {:?} to the filter", output.outpoint);
406+
"Adding monitoring for spends of outpoint {} to the filter", output.outpoint);
407407
chain_source.register_output(output);
408408
}
409409
}

lightning/src/chain/channelmonitor.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,8 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
13491349
{
13501350
let lock = self.inner.lock().unwrap();
13511351
filter.register_tx(&lock.get_funding_txo().0.txid, &lock.get_funding_txo().1);
1352-
log_trace!(logger, "Registering funding outpoint {:?}" , &lock.get_funding_txo());
1352+
log_trace!(logger,
1353+
"Registering funding outpoint {}:{}", &lock.get_funding_txo().0.txid, &lock.get_funding_txo().0.index);
13531354
for (txid, outputs) in lock.get_outputs_to_watch().iter() {
13541355
for (index, script_pubkey) in outputs.iter() {
13551356
assert!(*index <= u16::max_value() as u32);

lightning/src/chain/transaction.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ impl OutPoint {
7575
}
7676
}
7777

78+
impl core::fmt::Display for OutPoint {
79+
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
80+
write!(f, "{}:{}", self.txid, self.index)
81+
}
82+
}
83+
7884
impl_writeable!(OutPoint, { txid, index });
7985

8086
#[cfg(test)]

0 commit comments

Comments
 (0)