From 29792214daf3dee425b50db67ea074cf230d222a Mon Sep 17 00:00:00 2001 From: benthecarman Date: Mon, 25 Mar 2024 20:03:38 -0500 Subject: [PATCH] Log payment failure reason --- mutiny-core/src/event.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mutiny-core/src/event.rs b/mutiny-core/src/event.rs index 815f0eb23..96cf57230 100644 --- a/mutiny-core/src/event.rs +++ b/mutiny-core/src/event.rs @@ -443,8 +443,16 @@ impl EventHandler { 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,