Skip to content

Commit

Permalink
Fix: Include query string in request logs
Browse files Browse the repository at this point in the history
  • Loading branch information
PromiseFru committed Sep 19, 2024
1 parent e0a948d commit 03b6f34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wsgi_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ def __call__(self, environ, start_response):
"""
request_method = environ["REQUEST_METHOD"]
path_info = environ["PATH_INFO"]
query_string = environ.get("QUERY_STRING", "")

if query_string:
path_info += f"?{query_string}"

logger.debug("Incoming request: %s %s", request_method, path_info)

Expand Down

0 comments on commit 03b6f34

Please sign in to comment.