mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Update log/root.go
Co-authored-by: Martin Holst Swende <martin@swende.se>
This commit is contained in:
parent
a57ab1c496
commit
5b0252bf41
1 changed files with 1 additions and 2 deletions
|
|
@ -22,8 +22,7 @@ func SetDefault(l Logger) {
|
||||||
|
|
||||||
// Root returns the root logger
|
// Root returns the root logger
|
||||||
func Root() Logger {
|
func Root() Logger {
|
||||||
res, _ := root.Load().(Logger)
|
return root.Load().(Logger)
|
||||||
return res
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// The following functions bypass the exported logger methods (logger.Debug,
|
// The following functions bypass the exported logger methods (logger.Debug,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue