From a371afec058603046f0c3afc13f15953a8765b3d Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Tue, 29 Apr 2025 16:33:03 +0300 Subject: [PATCH] [#XX] Improve request log It's better to see original URI rather than decoded Signed-off-by: Denis Kirillov --- cmd/http-gw/app.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/http-gw/app.go b/cmd/http-gw/app.go index 4a83caf..832715f 100644 --- a/cmd/http-gw/app.go +++ b/cmd/http-gw/app.go @@ -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) }