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
a375531c
Commit
a375531c
authored
Sep 29, 2017
by
Rabia Iftikhar
Committed by
GitHub
Sep 29, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16120 from edx/ri/EDUCATOR-139-add-log
EDUCATOR-139 add log to identify the cause of error
parents
7b2f7214
ec105008
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
common/lib/xmodule/xmodule/x_module.py
+14
-0
No files found.
common/lib/xmodule/xmodule/x_module.py
View file @
a375531c
...
...
@@ -881,7 +881,21 @@ class XModule(HTMLSnippet, XModuleMixin):
request_post
[
key
]
=
map
(
FileObjForWebobFiles
,
request
.
POST
.
getall
(
key
))
response_data
=
self
.
handle_ajax
(
suffix
,
request_post
)
try
:
return
Response
(
response_data
,
content_type
=
'application/json'
)
except
TypeError
:
request_environ
=
getattr
(
request
,
'environ'
)
log
.
exception
(
'Response creation failed for problem url:
%
s, response_data type:
%
s, LANG:
%
s, '
'LC_ALL:
%
s and HTTP_ACCEPT_ENCODING:
%
s'
,
request_environ
.
get
(
'HTTP_REFERER'
),
type
(
response_data
),
request_environ
.
get
(
'LANG'
),
request_environ
.
get
(
'LC_ALL'
),
request_environ
.
get
(
'HTTP_ACCEPT_ENCODING'
)
)
raise
def
get_child
(
self
,
usage_id
):
if
usage_id
in
self
.
_child_cache
:
...
...
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