mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
log: avoid setting default slog logger in init
This commit is contained in:
parent
09e0208029
commit
7f134cf761
1 changed files with 1 additions and 2 deletions
|
|
@ -10,8 +10,7 @@ import (
|
|||
var root atomic.Value
|
||||
|
||||
func init() {
|
||||
defaultLogger := &logger{slog.New(DiscardHandler())}
|
||||
SetDefault(defaultLogger)
|
||||
root.Store(&logger{slog.New(DiscardHandler())})
|
||||
}
|
||||
|
||||
// SetDefault sets the default global logger
|
||||
|
|
|
|||
Loading…
Reference in a new issue