multi: optimize loggings around changes from blockbeat

This commit is contained in:
yyforyongyu committed 2024-12-20 17:54:08 +08:00
1 parent fecd5ac735
commit 4806b2fda7
9 files changed
+62 -38

No files matched your search

+5
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)