From 73c8c21f02aadaf702ef41849e8954c12e65ed8d Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 28 Aug 2014 16:14:45 +0000 Subject: Log connection info in simplified HTTP server. svn path=/branches/tk705/; revision=5937 --- rpki/http_simple.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'rpki/http_simple.py') diff --git a/rpki/http_simple.py b/rpki/http_simple.py index d50fd993..16a1d792 100644 --- a/rpki/http_simple.py +++ b/rpki/http_simple.py @@ -60,8 +60,7 @@ class HTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): self.wfile.write(der) def log_message(self, *args): - # Might want to use LogAdapter for connection info here? - logger.info(*args) + logger.info(*args, extra = dict(context = "%s:%s" % self.client_address)) def server(handlers, port, host = ""): -- cgit v1.2.3