Removing unnecessary ProxyLogger nil check

By ensuring it is initialized before codes that access it.
This commit is contained in:
Cuong Manh Le
2025-02-19 20:37:59 +07:00
committed by Cuong Manh Le
parent 54cb455522
commit 9fe36ae984
3 changed files with 23 additions and 39 deletions

5
log.go
View File

@@ -9,11 +9,6 @@ import (
"github.com/rs/zerolog"
)
func init() {
l := zerolog.New(io.Discard)
ProxyLogger.Store(&l)
}
// ProxyLog emits the log record for proxy operations.
// The caller should set it only once.
// DEPRECATED: use ProxyLogger instead.