multi: add more logging when fetching invoices and payments.

This commit is contained in:
ziggie committed 2025-04-18 16:33:39 +02:00
1 parent 729c84bee3
commit 440ed31419
7 files changed
+134 -6

No files matched your search

+3
View File
@@ -365,10 +365,13 @@ func (p *controlTower) SubscribeAllPayments() (ControlTowerSubscriber, error) {
p.subscriberIndex++
p.subscribersMtx.Unlock()
log.Debugf("Scanning for inflight payments")
inflightPayments, err := p.db.FetchInFlightPayments()
if err != nil {
return nil, err
}
log.Debugf("Scanning for inflight payments finished",
len(inflightPayments))
for index := range inflightPayments {
// Always write current payment state to the channel.