chainntnfs/txnotifier: promote historical spend log to info
And add some more details.
This commit is contained in:
parent
339543857a
commit
ddeb9fbbbb
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user