From ddeb9fbbbbcc17fe177414ad8e6cdd93e689d289 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Thu, 21 Nov 2019 15:17:28 +0100 Subject: [PATCH] chainntnfs/txnotifier: promote historical spend log to info And add some more details. --- chainntnfs/txnotifier.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/chainntnfs/txnotifier.go b/chainntnfs/txnotifier.go index d919f230..94a959d5 100644 --- a/chainntnfs/txnotifier.go +++ b/chainntnfs/txnotifier.go @@ -1084,8 +1084,8 @@ func (n *TxNotifier) RegisterSpend(outpoint *wire.OutPoint, pkScript []byte, // notifications don't also attempt a historical dispatch. spendSet.rescanStatus = rescanPending - Log.Debugf("Dispatching historical spend rescan for %v", - ntfn.SpendRequest) + Log.Infof("Dispatching historical spend rescan for %v, start=%d, "+ + "end=%d", ntfn.SpendRequest, startHeight, n.currentHeight) return &SpendRegistration{ Event: ntfn.Event, @@ -1299,8 +1299,9 @@ func (n *TxNotifier) dispatchSpendDetails(ntfn *SpendNtfn, details *SpendDetail) return nil } - Log.Infof("Dispatching confirmed spend notification for %v at height=%d", - ntfn.SpendRequest, n.currentHeight) + Log.Infof("Dispatching confirmed spend notification for %v at "+ + "current height=%d: %v", ntfn.SpendRequest, n.currentHeight, + details) select { case ntfn.Event.Spend <- details: