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
9c671163
Commit
9c671163
authored
Mar 27, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added exc_info=True to log.warning
Changed log.exception to log.warning
parent
f038237e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
cms/djangoapps/contentstore/views.py
+2
-1
common/lib/xmodule/xmodule/capa_module.py
+2
-1
lms/djangoapps/courseware/module_render.py
+2
-1
No files found.
cms/djangoapps/contentstore/views.py
View file @
9c671163
...
@@ -454,7 +454,8 @@ def preview_dispatch(request, preview_id, location, dispatch=None):
...
@@ -454,7 +454,8 @@ def preview_dispatch(request, preview_id, location, dispatch=None):
raise
Http404
raise
Http404
except
ProcessingError
:
except
ProcessingError
:
log
.
warning
(
"Module raised an error while processing AJAX request"
)
log
.
warning
(
"Module raised an error while processing AJAX request"
,
exc_info
=
True
)
return
HttpResponseBadRequest
()
return
HttpResponseBadRequest
()
except
:
except
:
...
...
common/lib/xmodule/xmodule/capa_module.py
View file @
9c671163
...
@@ -735,7 +735,8 @@ class CapaModule(CapaFields, XModule):
...
@@ -735,7 +735,8 @@ class CapaModule(CapaFields, XModule):
self
.
set_state_from_lcp
()
self
.
set_state_from_lcp
()
except
(
StudentInputError
,
ResponseError
,
LoncapaProblemError
)
as
inst
:
except
(
StudentInputError
,
ResponseError
,
LoncapaProblemError
)
as
inst
:
log
.
exception
(
"StudentInputError in capa_module:problem_check"
)
log
.
warning
(
"StudentInputError in capa_module:problem_check"
,
exc_info
=
True
)
# If the user is a staff member, include
# If the user is a staff member, include
# the full exception, including traceback,
# the full exception, including traceback,
...
...
lms/djangoapps/courseware/module_render.py
View file @
9c671163
...
@@ -451,7 +451,8 @@ def modx_dispatch(request, dispatch, location, course_id):
...
@@ -451,7 +451,8 @@ def modx_dispatch(request, dispatch, location, course_id):
# For XModule-specific errors, we respond with 400
# For XModule-specific errors, we respond with 400
except
ProcessingError
:
except
ProcessingError
:
log
.
exception
(
"Module encountered an error while prcessing AJAX call"
)
log
.
warning
(
"Module encountered an error while prcessing AJAX call"
,
exc_info
=
True
)
return
HttpResponseBadRequest
()
return
HttpResponseBadRequest
()
# If any other error occurred, re-raise it to trigger a 500 response
# If any other error occurred, re-raise it to trigger a 500 response
...
...
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