]> granicus.if.org Git - python/commitdiff
Fix issue6085 - Remove the delay caused by fqdn lookup while logging in BaseHTTPReque...
authorSenthil Kumaran <senthil@uthcode.com>
Sun, 29 Apr 2012 05:41:03 +0000 (13:41 +0800)
committerSenthil Kumaran <senthil@uthcode.com>
Sun, 29 Apr 2012 05:41:03 +0000 (13:41 +0800)
Doc/library/http.server.rst
Lib/http/server.py

index 2281c302917b70867234720e278d4eca8922c650..300e332910b64c29a1626cfa6a32f5629ad3bb25 100644 (file)
@@ -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()
 
index 80f58e6809473f847f07e22c4f2a9c00b5815b30..5569037427dd9c8e6d05bf2566b6f9336086d09d 100644 (file)
@@ -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))