From 16616ed5bc5ddd8852b68636791c2ad535517e9b Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Mon, 20 Dec 2021 02:38:49 +0800 Subject: [PATCH] update --- server/middleware.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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())