summaryrefslogtreecommitdiffstats
path: root/Lib/BaseHTTPServer.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-04-29 05:39:16 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-04-29 05:39:16 (GMT)
commitfb5aebc1ccc9153508af0872accc094fdd3fd99a (patch)
treec3cbe8a8859b89c1532039208749eae6eb2f27d8 /Lib/BaseHTTPServer.py
parent114277308478d764eb01e1b054dab5d671d5e023 (diff)
downloadcpython-fb5aebc1ccc9153508af0872accc094fdd3fd99a.zip
cpython-fb5aebc1ccc9153508af0872accc094fdd3fd99a.tar.gz
cpython-fb5aebc1ccc9153508af0872accc094fdd3fd99a.tar.bz2
Fix issue6085 - Remove the delay caused by fqdn lookup while logging in BaseHTTPRequestHandler
Diffstat (limited to 'Lib/BaseHTTPServer.py')
-rw-r--r--Lib/BaseHTTPServer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/BaseHTTPServer.py b/Lib/BaseHTTPServer.py
index 1a39485..deaf2f9 100644
--- a/Lib/BaseHTTPServer.py
+++ b/Lib/BaseHTTPServer.py
@@ -447,13 +447,13 @@ class BaseHTTPRequestHandler(SocketServer.StreamRequestHandler):
specified as subsequent arguments (it's just like
printf!).
- The client host and current date/time are prefixed to
- every message.
+ The client ip address 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))