master
Evan Chen 2021-12-20 20:21:00 +08:00
parent 07f530301d
commit 1a6235741b
1 changed files with 1 additions and 1 deletions

View File

@ -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") {