commit 6f7049dc58d07d96c98eead01f2361893cc9d672 Author: David Fifield david@bamsoftware.com Date: Sat Jun 11 10:46:59 2011 -0700
Log request line, status code, and referer. --- facilitator.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/facilitator.py b/facilitator.py index 09f8a32..a41ed6f 100755 --- a/facilitator.py +++ b/facilitator.py @@ -270,6 +270,12 @@ class Handler(BaseHTTPServer.BaseHTTPRequestHandler): if message: self.wfile.write(message)
+ def log_request(self, code): + addr_s = format_addr(self.client_address) + referer = self.headers.get("Referer") or "-" + log(u"resp %s %s %d %s" + % (addr_s, repr(self.requestline), code, repr(referer))) + def log_message(self, format, *args): msg = format % args log(u"message from HTTP handler for %s: %s"
tor-commits@lists.torproject.org