Commit 487a894f by Matt Drayer

Merge pull request #10264 from edx/ziafazal/log-exception-in-custom-500-handling

log exception in the logs to debug issue on production or sandbox environments
parents 034f2015 b9dfcb22
......@@ -84,6 +84,7 @@ def handle_500(template_path, context=None):
# In debug mode let django process the 500 errors and display debug info for the developer
raise
else:
log.exception("Error in django view.")
return render_to_response(template_path, context)
return inner
return decorator
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment