Skip to content

Commit

Permalink
Merge pull request #1083 from MutinyWallet/log-failure-reason
Browse files Browse the repository at this point in the history
Log payment failure reason
  • Loading branch information
benthecarman committed Mar 26, 2024
2 parents dbad131 + 2979221 commit 5ca7123
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions mutiny-core/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,16 @@ impl<S: MutinyStorage> EventHandler<S> {
Event::ProbeFailed { .. } => {
log_debug!(self.logger, "EVENT: ProbeFailed, ignored");
}
Event::PaymentFailed { payment_hash, .. } => {
log_error!(self.logger, "EVENT: PaymentFailed: {}", payment_hash);
Event::PaymentFailed {
payment_hash,
reason,
..
} => {
log_error!(
self.logger,
"EVENT: PaymentFailed: {} for reason {reason:?}",
payment_hash
);

match read_payment_info(
&self.persister.storage,
Expand Down

0 comments on commit 5ca7123

Please sign in to comment.