Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
9dba84fe
Commit
9dba84fe
authored
Oct 10, 2013
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1197 from edx/ned/quiet-lti-server-test
Suppress request logging in the LTI test server.
parents
b70ee725
ca345d92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
lms/djangoapps/courseware/mock_lti_server/mock_lti_server.py
+10
-0
No files found.
lms/djangoapps/courseware/mock_lti_server/mock_lti_server.py
View file @
9dba84fe
...
...
@@ -2,6 +2,7 @@ from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
import
urlparse
from
oauthlib.oauth1.rfc5849
import
signature
import
mock
import
sys
from
logging
import
getLogger
logger
=
getLogger
(
__name__
)
...
...
@@ -13,6 +14,15 @@ class MockLTIRequestHandler(BaseHTTPRequestHandler):
protocol
=
"HTTP/1.0"
def
log_message
(
self
,
format
,
*
args
):
"""Log an arbitrary message."""
# Code copied from BaseHTTPServer.py. Changed to write to sys.stdout
# so that messages won't pollute test output.
sys
.
stdout
.
write
(
"
%
s - - [
%
s]
%
s
\n
"
%
(
self
.
client_address
[
0
],
self
.
log_date_time_string
(),
format
%
args
))
def
do_HEAD
(
self
):
self
.
_send_head
()
...
...
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