Update log/root.go

Co-authored-by: Martin Holst Swende <martin@swende.se>
This commit is contained in:
jwasinger 2023-11-22 19:05:04 +08:00 committed by GitHub
parent a57ab1c496
commit 5b0252bf41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,8 +22,7 @@ func SetDefault(l Logger) {
// Root returns the root logger
func Root() Logger {
res, _ := root.Load().(Logger)
return res
return root.Load().(Logger)
}
// The following functions bypass the exported logger methods (logger.Debug,