Merge pull request #51 from mcallistersean/issue/50

log full uri for http response
This commit is contained in:
Andrew Godwin 2016-10-11 13:21:07 -07:00 committed by GitHub
commit 5f6f14a8d1

View File

@ -228,7 +228,7 @@ class WebRequest(http.Request):
logger.debug("HTTP response complete for %s", self.reply_channel) logger.debug("HTTP response complete for %s", self.reply_channel)
try: try:
self.factory.log_action("http", "complete", { self.factory.log_action("http", "complete", {
"path": self.path.decode("ascii"), "path": self.uri.decode("ascii"),
"status": self.code, "status": self.code,
"method": self.method.decode("ascii"), "method": self.method.decode("ascii"),
"client": "%s:%s" % tuple(self.client_addr) if self.client_addr else None, "client": "%s:%s" % tuple(self.client_addr) if self.client_addr else None,