Skip to content

Commit

Permalink
Merge pull request #1877 from CortexFoundation/dev
Browse files Browse the repository at this point in the history
log: avoid setting default slog logger in init
  • Loading branch information
ucwong authored Jan 1, 2024
2 parents ae8b1f8 + f86cc65 commit 80e7ac0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions log/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80e7ac0

Please sign in to comment.