diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2012-04-29 05:41:03 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2012-04-29 05:41:03 (GMT) |
commit | db727b4a7792c5887fc7b198b23e497d758f39e3 (patch) | |
tree | f4dfc1826b3e283ecd12da2eb6d01177baf6c47c | |
parent | e990092fd0e17f79f282f4009ce1676bfde09ab4 (diff) | |
download | cpython-db727b4a7792c5887fc7b198b23e497d758f39e3.zip cpython-db727b4a7792c5887fc7b198b23e497d758f39e3.tar.gz cpython-db727b4a7792c5887fc7b198b23e497d758f39e3.tar.bz2 |
Fix issue6085 - Remove the delay caused by fqdn lookup while logging in BaseHTTPRequestHandler
-rw-r--r-- | Doc/library/http.server.rst | 2 | ||||
-rw-r--r-- | Lib/http/server.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst index 2281c30..300e332 100644 --- a/Doc/library/http.server.rst +++ b/Doc/library/http.server.rst @@ -229,7 +229,7 @@ of which this module provides three different variants: to create custom error logging mechanisms. The *format* argument is a standard printf-style format string, where the additional arguments to :meth:`log_message` are applied as inputs to the formatting. The client - address and current date and time are prefixed to every message logged. + ip address and current date and time are prefixed to every message logged. .. method:: version_string() diff --git a/Lib/http/server.py b/Lib/http/server.py index 80f58e6..5569037 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)) |