mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-02 03:54:26 +02:00
multi: optimize loggings around changes from blockbeat
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user