[Python-checkins] cpython (2.7): Fix issue6085 - Remove the delay caused by fqdn lookup while logging in

senthil.kumaran python-checkins at python.org
Sun Apr 29 07:44:34 CEST 2012


http://hg.python.org/cpython/rev/fb1e71c7619a
changeset:   76617:fb1e71c7619a
branch:      2.7
parent:      76611:7c262962b681
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Sun Apr 29 13:39:16 2012 +0800
summary:
  Fix issue6085 - Remove the delay caused by fqdn lookup while logging in BaseHTTPRequestHandler

files:
  Doc/library/basehttpserver.rst |  2 +-
  Lib/BaseHTTPServer.py          |  6 +++---
  2 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/Doc/library/basehttpserver.rst b/Doc/library/basehttpserver.rst
--- a/Doc/library/basehttpserver.rst
+++ b/Doc/library/basehttpserver.rst
@@ -240,7 +240,7 @@
       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/BaseHTTPServer.py b/Lib/BaseHTTPServer.py
--- a/Lib/BaseHTTPServer.py
+++ b/Lib/BaseHTTPServer.py
@@ -447,13 +447,13 @@
         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))
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list