log invoice on error in track status

This commit is contained in:
kiwiidb
2022-10-06 12:37:39 +02:00
parent 0bcf83545b
commit c437651cf8

View File

@@ -21,7 +21,7 @@ func (svc *LndhubService) CheckAllPendingOutgoingPayments(ctx context.Context) (
for _, inv := range pendingPayments {
err = svc.TrackOutgoingPaymentstatus(ctx, &inv)
if err != nil {
svc.Logger.Error(err)
svc.Logger.Errorf("Error tracking payment %v: %s", inv, err.Error())
}
}
return nil