diff --git a/system/setup.go b/system/setup.go index 1111bde..54acfd2 100644 --- a/system/setup.go +++ b/system/setup.go @@ -48,7 +48,7 @@ func init() { var setupped bool = false func SetupLogger(l zerolog.Logger, skip ...int) zerolog.Logger { - if !util.PROD { + if !util.PROD && len(skip) > 0 { l = l.With().Caller().Logger() } if viper.GetBool("log.pretty") {