multi: add more logging when fetching invoices and payments.

This commit is contained in:
ziggie
2025-04-18 15:27:00 +02:00
parent 729c84bee3
commit 440ed31419
7 changed files with 134 additions and 6 deletions

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.