chore: log LDK successful payment hash (#1832)

This commit is contained in:
Roland 2025-10-14 13:20:34 +07:00 committed by GitHub
parent 7212429c3c
commit dcb3b4d453
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -600,8 +600,9 @@ func (ls *LDKService) SendPaymentSync(invoice string, amount *uint64) (*lnclient
}
logger.Logger.WithFields(logrus.Fields{
"duration": time.Since(paymentStart).Milliseconds(),
"fee": fee,
"duration": time.Since(paymentStart).Milliseconds(),
"fee": fee,
"payment_hash": event.PaymentHash,
}).Info("Successful payment")
return &lnclient.PayInvoiceResponse{
@ -2253,7 +2254,7 @@ func (ls *LDKService) PayOfferSync(ctx context.Context, offer string, amount uin
logger.Logger.WithFields(logrus.Fields{
"duration": time.Since(paymentStart).Milliseconds(),
"fee": fee,
}).Info("Successful payment")
}).Info("Successful BOLT-12 payment")
return &lnclient.PayOfferResponse{
PaymentHash: paymentHash,