Skip to content

Commit

Permalink
Log payment failure reason
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Mar 26, 2024
1 parent fbf2133 commit 2979221
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 2979221

Please sign in to comment.