chainntnfs/txnotifier: promote historical spend log to info

And add some more details.
This commit is contained in:
Johan T. Halseth 2019-11-21 15:17:28 +01:00
parent 339543857a
commit ddeb9fbbbb
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -1084,8 +1084,8 @@ func (n *TxNotifier) RegisterSpend(outpoint *wire.OutPoint, pkScript []byte,
// notifications don't also attempt a historical dispatch. // notifications don't also attempt a historical dispatch.
spendSet.rescanStatus = rescanPending spendSet.rescanStatus = rescanPending
Log.Debugf("Dispatching historical spend rescan for %v", Log.Infof("Dispatching historical spend rescan for %v, start=%d, "+
ntfn.SpendRequest) "end=%d", ntfn.SpendRequest, startHeight, n.currentHeight)
return &SpendRegistration{ return &SpendRegistration{
Event: ntfn.Event, Event: ntfn.Event,
@ -1299,8 +1299,9 @@ func (n *TxNotifier) dispatchSpendDetails(ntfn *SpendNtfn, details *SpendDetail)
return nil return nil
} }
Log.Infof("Dispatching confirmed spend notification for %v at height=%d", Log.Infof("Dispatching confirmed spend notification for %v at "+
ntfn.SpendRequest, n.currentHeight) "current height=%d: %v", ntfn.SpendRequest, n.currentHeight,
details)
select { select {
case ntfn.Event.Spend <- details: case ntfn.Event.Spend <- details: