From a35e359482fc3fc65b7952b4d0f63522c5bde0c3 Mon Sep 17 00:00:00 2001 From: Adam Palay Date: Fri, 2 May 2014 15:31:08 -0400 Subject: [PATCH] add logging to course import --- cms/djangoapps/contentstore/views/import_export.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cms/djangoapps/contentstore/views/import_export.py b/cms/djangoapps/contentstore/views/import_export.py index b450eef1df..244cae95d6 100644 --- a/cms/djangoapps/contentstore/views/import_export.py +++ b/cms/djangoapps/contentstore/views/import_export.py @@ -238,6 +238,9 @@ def import_handler(request, tag=None, package_id=None, branch=None, version_guid # Send errors to client with stage at which error occurred. except Exception as exception: # pylint: disable=W0703 + log.exception( + "error importing course at {0}".format(new_location) + ) return JsonResponse( { 'ErrMsg': str(exception),