changeset: 76618:6adad27fcc8c branch: 3.2 parent: 76615:da9179248118 user: Senthil Kumaran date: Sun Apr 29 13:41:03 2012 +0800 files: Doc/library/http.server.rst Lib/http/server.py description: Fix issue6085 - Remove the delay caused by fqdn lookup while logging in BaseHTTPRequestHandler diff -r da9179248118 -r 6adad27fcc8c Doc/library/http.server.rst --- a/Doc/library/http.server.rst Sun Apr 29 08:23:25 2012 +0300 +++ b/Doc/library/http.server.rst Sun Apr 29 13:41:03 2012 +0800 @@ -229,7 +229,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 -r da9179248118 -r 6adad27fcc8c Lib/http/server.py --- a/Lib/http/server.py Sun Apr 29 08:23:25 2012 +0300 +++ b/Lib/http/server.py Sun Apr 29 13:41:03 2012 +0800 @@ -508,13 +508,13 @@ 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))

AltStyle によって変換されたページ (->オリジナル) /