mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 16:58:31 +02:00
refactor: remove the use of logging module in most code
This commit is contained in:
@@ -2,8 +2,8 @@ package maxmind
|
||||
|
||||
import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/yusing/go-proxy/internal/gperr"
|
||||
"github.com/yusing/go-proxy/internal/logging"
|
||||
)
|
||||
|
||||
type (
|
||||
@@ -28,6 +28,6 @@ func (cfg *Config) Validate() gperr.Error {
|
||||
}
|
||||
|
||||
func (cfg *Config) Logger() *zerolog.Logger {
|
||||
l := logging.With().Str("database", string(cfg.Database)).Logger()
|
||||
l := log.With().Str("database", string(cfg.Database)).Logger()
|
||||
return &l
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user