Added exc_info=True to log.warning

Changed log.exception to log.warning
This commit is contained in:
Will Daly
2013-03-27 17:11:02 -04:00
parent f038237ee9
commit 9c671163fd
3 changed files with 6 additions and 3 deletions

View File

@@ -451,7 +451,8 @@ def modx_dispatch(request, dispatch, location, course_id):
# For XModule-specific errors, we respond with 400
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()
# If any other error occurred, re-raise it to trigger a 500 response