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