Err(()) => return ResponseInstruction::NoResponse,
};
+ let logger = WithContext::from(
+ &self.logger, None, None, Some(invoice.payment_hash()),
+ );
+
let result = {
let features = self.bolt12_invoice_features();
if invoice.invoice_features().requires_unknown_bits_from(&features) {
} else {
self.send_payment_for_verified_bolt12_invoice(&invoice, payment_id)
.map_err(|e| {
- log_trace!(self.logger, "Failed paying invoice: {:?}", e);
+ log_trace!(logger, "Failed paying invoice: {:?}", e);
InvoiceError::from_string(format!("{:?}", e))
})
}
None => {
abandon_if_payment(context);
log_trace!(
- self.logger,
+ logger,
"An error response was generated, but there is no reply_path specified \
for sending the response. Error: {}",
err