master
Evan Chen 2021-12-20 02:38:49 +08:00
parent a5342c3ef5
commit 16616ed5bc
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ func (srv *Service) Default(c *gin.Context) {
cl.Str("error", fmt.Sprint(err)) cl.Str("error", fmt.Sprint(err))
} }
if !util.PROD { if !util.PROD {
cl.Str("trace", util.Stack()) cl.Caller(4)
// cl.Str("trace", util.Stack())
} }
} else if c.Writer.Status() >= 400 { } else if c.Writer.Status() >= 400 {
cl = srv.l.Error().Strs("error", c.Errors.Errors()) cl = srv.l.Error().Strs("error", c.Errors.Errors())