Skip to content
Snippets Groups Projects
Commit 70341dde authored by Francé Wilke's avatar Francé Wilke
Browse files

Don't log the query params if there are none

parent 9f0e5b76
Branches
Tags v1.137.0
No related merge requests found
...@@ -224,7 +224,10 @@ func LogRequestInfo(req events.APIGatewayProxyRequest, extraFields ...map[string ...@@ -224,7 +224,10 @@ func LogRequestInfo(req events.APIGatewayProxyRequest, extraFields ...map[string
"path": req.Path, "path": req.Path,
"method": req.HTTPMethod, "method": req.HTTPMethod,
"body": req.Body, "body": req.Body,
"query": req.QueryStringParameters, }
if req.QueryStringParameters != nil {
fields["query"] = req.QueryStringParameters
} }
if req.Headers["client-version"] != "" { if req.Headers["client-version"] != "" {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment