From 381fbf0921ff8b95ecd96b83d6b198dbf0fe2ba4 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Tue, 29 Apr 2025 16:33:03 +0300 Subject: [PATCH] [#237] 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 4a83cafb..832715f2 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) }