Skip to content

Commit 319ad1b

Browse files
committed
Add logging for successful/failed probes
1 parent a5d24da commit 319ad1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning-invoice/src/payment.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,10 @@ where
599599
// handler.
600600
if self.payer.payment_is_probe(*payment_hash, *payment_id) {
601601
if *rejected_by_dest {
602+
log_trace!(self.logger, "Probe {} was successful", log_bytes!(payment_hash.0));
602603
self.scorer.lock().probe_successful(&path);
603604
} else {
605+
log_trace!(self.logger, "Probe {} failed at channel {}", log_bytes!(payment_hash.0), *short_channel_id);
604606
self.scorer.lock().probe_failed(&path, *short_channel_id);
605607
}
606608
return;

0 commit comments

Comments
 (0)