Add logging when user is removed from exception list

ECOM-3525
This commit is contained in:
Awais Jibran
2016-01-27 12:47:06 +05:00
parent 7c8de429d9
commit 0f2f1f2c17

View File

@@ -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