diff options
author | Helmut Grohne <helmut@subdivi.de> | 2008-09-24 02:46:19 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2008-09-24 02:46:19 +0200 |
commit | 7b46d32f7dfb63eb597d6f3ad918766d732af68d (patch) | |
tree | 25ccb8a701df26638a0d5e266826a7e25e510639 /wsgitools | |
parent | 046d626712723a275bf9c33220c20be2b231be73 (diff) | |
download | wsgitools-7b46d32f7dfb63eb597d6f3ad918766d732af68d.tar.gz |
RequestLogWSGIFilter can also log QUERY_STRING
Diffstat (limited to 'wsgitools')
-rw-r--r-- | wsgitools/filters.py | 2 |
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", "-") |