Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
db727b4a
Commit
db727b4a
authored
Apr 29, 2012
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue6085 - Remove the delay caused by fqdn lookup while logging in BaseHTTPRequestHandler
parent
e990092f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Doc/library/http.server.rst
Doc/library/http.server.rst
+1
-1
Lib/http/server.py
Lib/http/server.py
+2
-2
No files found.
Doc/library/http.server.rst
View file @
db727b4a
...
...
@@ -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()
...
...
Lib/http/server.py
View file @
db727b4a
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment