summaryrefslogtreecommitdiff
path: root/wsgitools
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2008-09-24 02:46:19 +0200
committerHelmut Grohne <helmut@subdivi.de>2008-09-24 02:46:19 +0200
commit7b46d32f7dfb63eb597d6f3ad918766d732af68d (patch)
tree25ccb8a701df26638a0d5e266826a7e25e510639 /wsgitools
parent046d626712723a275bf9c33220c20be2b231be73 (diff)
downloadwsgitools-7b46d32f7dfb63eb597d6f3ad918766d732af68d.tar.gz
RequestLogWSGIFilter can also log QUERY_STRING
Diffstat (limited to 'wsgitools')
-rw-r--r--wsgitools/filters.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wsgitools/filters.py b/wsgitools/filters.py
index 9b901fd..943f56b 100644
--- a/wsgitools/filters.py
+++ b/wsgitools/filters.py
@@ -221,6 +221,8 @@ class RequestLogWSGIFilter(BaseWSGIFilter):
self.user = environ.get("REMOTE_USER", "-")
self.reqmethod = environ["REQUEST_METHOD"]
self.path = environ["SCRIPT_NAME"] + environ["PATH_INFO"]
+ if environ.get("QUERY_STRING"):
+ self.path = "%s?%s" % (self.path, environ["QUERY_STRING"])
self.proto = environ.get("SERVER_PROTOCOL", None)
self.referrer = environ.get("HTTP_REFERER", "-")
self.useragent = environ.get("HTTP_USER_AGENT", "-")