mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-22 07:04:56 +01:00
log fmt
This commit is contained in:
@@ -238,7 +238,7 @@ func (client *DefaultClient) FinalizeInitializedPayments(ctx context.Context, sv
|
|||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
invoices, err := getInvoicesTable(ctx)
|
invoices, err := getInvoicesTable(ctx)
|
||||||
pendingInvoices = invoices
|
pendingInvoices = invoices
|
||||||
client.logger.Info("Payment finalizer: Found %d pending invoices", len(pendingInvoices))
|
client.logger.Infof("Payment finalizer: Found %d pending invoices", len(pendingInvoices))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -273,8 +273,8 @@ func (client *DefaultClient) FinalizeInitializedPayments(ctx context.Context, sv
|
|||||||
|
|
||||||
switch payment.Status {
|
switch payment.Status {
|
||||||
case lnrpc.Payment_SUCCEEDED:
|
case lnrpc.Payment_SUCCEEDED:
|
||||||
invoice.Fee = payment.FeeSat
|
invoice.Fee = payment.FeeSat
|
||||||
invoice.Preimage = payment.PaymentPreimage
|
invoice.Preimage = payment.PaymentPreimage
|
||||||
|
|
||||||
if err = svc.HandleSuccessfulPayment(ctx, &invoice, t); err != nil {
|
if err = svc.HandleSuccessfulPayment(ctx, &invoice, t); err != nil {
|
||||||
captureErr(client.logger, err)
|
captureErr(client.logger, err)
|
||||||
|
|||||||
Reference in New Issue
Block a user