From b9dfcb2253aa3584ead0b52a742aa73ded13f421 Mon Sep 17 00:00:00 2001 From: Zia Fazal Date: Tue, 20 Oct 2015 14:22:26 +0500 Subject: [PATCH] log exception in the logs to debug issue --- common/djangoapps/util/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/common/djangoapps/util/views.py b/common/djangoapps/util/views.py index 74b9d799cc..e019e04e69 100644 --- a/common/djangoapps/util/views.py +++ b/common/djangoapps/util/views.py @@ -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