mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
Revert "core: set logger after inited"
This reverts commit 9e1d9ec5d98b45da51ee63c344a832d5a0a1e0d5. Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
7eec5583c1
commit
0f9fe5fda3
1 changed files with 0 additions and 9 deletions
|
|
@ -2544,12 +2544,3 @@ func (bc *BlockChain) GetTrieFlushInterval() time.Duration {
|
|||
func (bc *BlockChain) logger() *tracing.Hooks {
|
||||
return bc.vmConfig.Tracer
|
||||
}
|
||||
|
||||
// SetLogger sets the blockchain tracer for logging and debugging purposes.
|
||||
// This method should be called during the initialization phase of the blockchain.
|
||||
// Note: Setting a logger after the blockchain has started processing blocks may
|
||||
// result in inconsistent or partial logging. It's recommended to set the logger
|
||||
// before any block processing occurs.
|
||||
func (bc *BlockChain) SetLogger(logger *tracing.Hooks) {
|
||||
bc.vmConfig.Tracer = logger
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue