Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit 5ca7123

Browse files
authored
Merge pull request #1083 from MutinyWallet/log-failure-reason
Log payment failure reason
2 parents dbad131 + 2979221 commit 5ca7123

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

mutiny-core/src/event.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,16 @@ impl<S: MutinyStorage> EventHandler<S> {
443443
Event::ProbeFailed { .. } => {
444444
log_debug!(self.logger, "EVENT: ProbeFailed, ignored");
445445
}
446-
Event::PaymentFailed { payment_hash, .. } => {
447-
log_error!(self.logger, "EVENT: PaymentFailed: {}", payment_hash);
446+
Event::PaymentFailed {
447+
payment_hash,
448+
reason,
449+
..
450+
} => {
451+
log_error!(
452+
self.logger,
453+
"EVENT: PaymentFailed: {} for reason {reason:?}",
454+
payment_hash
455+
);
448456

449457
match read_payment_info(
450458
&self.persister.storage,

0 commit comments

Comments
 (0)