From 0f2f1f2c170225f9046019fb535aa3f878e01ad7 Mon Sep 17 00:00:00 2001 From: Awais Jibran Date: Wed, 27 Jan 2016 12:47:06 +0500 Subject: [PATCH] Add logging when user is removed from exception list ECOM-3525 --- lms/djangoapps/instructor/views/api.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lms/djangoapps/instructor/views/api.py b/lms/djangoapps/instructor/views/api.py index 87f8a7df12..f8e2154da4 100644 --- a/lms/djangoapps/instructor/views/api.py +++ b/lms/djangoapps/instructor/views/api.py @@ -2917,6 +2917,11 @@ def remove_certificate_exception(course_key, student): course_id=course_key ) generated_certificate.invalidate() + log.info( + u'Certificate invalidated for %s in course %s when removed from certificate exception list', + student.username, + course_key + ) except ObjectDoesNotExist: # Certificate has not been generated yet, so just remove the certificate exception from white list pass