[#XX] Improve request log
Some checks failed
/ DCO (pull_request) Failing after 33s
/ Builds (pull_request) Successful in 1m6s
/ Vulncheck (pull_request) Successful in 1m29s
/ OCI image (pull_request) Successful in 1m45s
/ Lint (pull_request) Successful in 3m0s
/ Tests (pull_request) Successful in 1m59s
/ Integration tests (pull_request) Successful in 6m57s
Some checks failed
/ DCO (pull_request) Failing after 33s
/ Builds (pull_request) Successful in 1m6s
/ Vulncheck (pull_request) Successful in 1m29s
/ OCI image (pull_request) Successful in 1m45s
/ Lint (pull_request) Successful in 3m0s
/ Tests (pull_request) Successful in 1m59s
/ Integration tests (pull_request) Successful in 6m57s
It's better to see original URI rather than decoded Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
96a22d98f2
commit
a371afec05
1 changed files with 1 additions and 2 deletions
|
@ -863,8 +863,7 @@ func (a *app) logger(h fasthttp.RequestHandler) fasthttp.RequestHandler {
|
|||
|
||||
log.Info(logs.Request, zap.String("remote", req.RemoteAddr().String()),
|
||||
zap.ByteString("method", req.Method()),
|
||||
zap.ByteString("path", req.Path()),
|
||||
zap.ByteString("query", req.QueryArgs().QueryString()),
|
||||
zap.ByteString("uri", req.RequestURI()),
|
||||
logs.TagField(logs.TagDatapath))
|
||||
h(req)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue