summaryrefslogtreecommitdiff
path: root/Lib/http/server.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-04-29 13:41:03 +0800
committerSenthil Kumaran <senthil@uthcode.com>2012-04-29 13:41:03 +0800
commitdb727b4a7792c5887fc7b198b23e497d758f39e3 (patch)
treef4dfc1826b3e283ecd12da2eb6d01177baf6c47c /Lib/http/server.py
parente990092fd0e17f79f282f4009ce1676bfde09ab4 (diff)
downloadcpython-git-db727b4a7792c5887fc7b198b23e497d758f39e3.tar.gz
Fix issue6085 - Remove the delay caused by fqdn lookup while logging in BaseHTTPRequestHandler
Diffstat (limited to 'Lib/http/server.py')
-rw-r--r--Lib/http/server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/http/server.py b/Lib/http/server.py
index 80f58e6809..5569037427 100644
--- a/Lib/http/server.py
+++ b/Lib/http/server.py
@@ -508,13 +508,13 @@ class BaseHTTPRequestHandler(socketserver.StreamRequestHandler):
specified as subsequent arguments (it's just like
printf!).
- The client host and current date/time are prefixed to
+ The client ip and current date/time are prefixed to
every message.
"""
sys.stderr.write("%s - - [%s] %s\n" %
- (self.address_string(),
+ (self.client_address[0],
self.log_date_time_string(),
format%args))