enhance(log):精简了在日志中输出访问请求的内容。
This commit is contained in:
parent
c2a56c8253
commit
bfa9da4a03
|
@ -63,8 +63,8 @@ func NewLogMiddleware(config LogMiddlewareConfig) fiber.Handler {
|
|||
zap.Namespace("context"),
|
||||
zap.String("pid", strconv.Itoa(os.Getpid())),
|
||||
zap.String("time", stop.Sub(start).String()),
|
||||
zap.Object("response", Resp(c.Response())),
|
||||
zap.Object("request", Req(c)),
|
||||
// zap.Object("response", Resp(c.Response())),
|
||||
// zap.Object("request", Req(c)),
|
||||
}
|
||||
|
||||
if u := c.Locals("userId"); u != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user