multi: optimize loggings around changes from blockbeat

This commit is contained in:
yyforyongyu
2024-10-18 05:35:00 +08:00
parent fecd5ac735
commit 4806b2fda7
9 changed files with 62 additions and 38 deletions

View File

@@ -9,6 +9,7 @@ import (
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/chainntnfs"
"github.com/lightningnetwork/lnd/lnutils"
"golang.org/x/sync/errgroup"
)
@@ -136,6 +137,10 @@ func (b *BlockbeatDispatcher) dispatchBlocks(
return
}
// Log a separator so it's easier to identify when a
// new block arrives for subsystems.
clog.Debugf("%v", lnutils.NewSeparatorClosure())
clog.Infof("Received new block %v at height %d, "+
"notifying consumers...", blockEpoch.Hash,
blockEpoch.Height)