Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db727b4

Browse files
committed
Fix issue6085 - Remove the delay caused by fqdn lookup while logging in BaseHTTPRequestHandler
1 parent e990092 commit db727b4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/http.server.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ of which this module provides three different variants:
229229
to create custom error logging mechanisms. The *format* argument is a
230230
standard printf-style format string, where the additional arguments to
231231
:meth:`log_message` are applied as inputs to the formatting. The client
232-
address and current date and time are prefixed to every message logged.
232+
ip address and current date and time are prefixed to every message logged.
233233

234234
.. method:: version_string()
235235

Lib/http/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,13 +508,13 @@ def log_message(self, format, *args):
508508
specified as subsequent arguments (it's just like
509509
printf!).
510510
511-
The client host and current date/time are prefixed to
511+
The client ip and current date/time are prefixed to
512512
every message.
513513
514514
"""
515515

516516
sys.stderr.write("%s - - [%s] %s\n" %
517-
(self.address_string(),
517+
(self.client_address[0],
518518
self.log_date_time_string(),
519519
format%args))
520520

0 commit comments

Comments
 (0)