invoices: fix log messages
This commit fixes incorrect log messages.
This commit is contained in:
parent
ab59f47a0b
commit
e6561ca86d
@ -108,7 +108,7 @@ func (ew *InvoiceExpiryWatcher) prepareInvoice(
|
|||||||
paymentHash lntypes.Hash, invoice *channeldb.Invoice) *invoiceExpiry {
|
paymentHash lntypes.Hash, invoice *channeldb.Invoice) *invoiceExpiry {
|
||||||
|
|
||||||
if invoice.State != channeldb.ContractOpen {
|
if invoice.State != channeldb.ContractOpen {
|
||||||
log.Debugf("Invoice not added to expiry watcher: %v", invoice)
|
log.Debugf("Invoice not added to expiry watcher: %v", paymentHash)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,7 +139,7 @@ func (ew *InvoiceExpiryWatcher) AddInvoices(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(invoicesWithExpiry) > 0 {
|
if len(invoicesWithExpiry) > 0 {
|
||||||
log.Debugf("Added %v invoices to the expiry watcher: %v",
|
log.Debugf("Added %d invoices to the expiry watcher",
|
||||||
len(invoicesWithExpiry))
|
len(invoicesWithExpiry))
|
||||||
select {
|
select {
|
||||||
case ew.newInvoices <- invoicesWithExpiry:
|
case ew.newInvoices <- invoicesWithExpiry:
|
||||||
|
@ -198,7 +198,8 @@ func (i *InvoiceRegistry) populateExpiryWatcher() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debugf("Adding %v pending invoices to the expiry watcher")
|
log.Debugf("Adding %d pending invoices to the expiry watcher",
|
||||||
|
len(pendingInvoices))
|
||||||
i.expiryWatcher.AddInvoices(pendingInvoices)
|
i.expiryWatcher.AddInvoices(pendingInvoices)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user