Commits

Senthil Kumaran  committed fb1e71c

Fix issue6085 - Remove the delay caused by fqdn lookup while logging in BaseHTTPRequestHandler

  • Participants
  • Parent commits 7c26296
  • Branches 2.7

Comments (0)

Files changed (2)

File Doc/library/basehttpserver.rst

       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()

File Lib/BaseHTTPServer.py

         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))