Skip to content

Commit

Permalink
feat(logger): update logger (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerLamTd authored Jan 18, 2024
1 parent 9aa7f15 commit 88e3acd
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 88e3acd

Please sign in to comment.