FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix issue6085 - Remove the delay caused by fqdn lookup while logging … · python-emscripten/cpython@fb5aebc · GitHub

Repository navigation

Commit fb5aebc

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

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎Doc/library/basehttpserver.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ to a handler. Code to create and run the server looks like this::
240240
to create custom error logging mechanisms. The *format* argument is a
241241
standard printf-style format string, where the additional arguments to
242242
:meth:`log_message` are applied as inputs to the formatting. The client
243-
address and current date and time are prefixed to every message logged.
243+
ip address and current date and time are prefixed to every message logged.
244244

245245

246246
.. method:: version_string()

‎Lib/BaseHTTPServer.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,13 +447,13 @@ def log_message(self, format, *args):
447447
specified as subsequent arguments (it's just like
448448
printf!).
449449
450-
The client host and current date/time are prefixed to
451-
every message.
450+
The client ip address and current date/time are prefixed to every
451+
message.
452452
453453
"""
454454

455455
sys.stderr.write("%s - - [%s] %s\n" %
456-
(self.address_string(),
456+
(self.client_address[0],
457457
self.log_date_time_string(),
458458
format%args))
459459

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL