Commit 7d8936e3 by Awais Jibran

Merge pull request #11346 from edx/aj/ecom-3525-add-logging-in-remove-user-from-cert-exception

Add logging when user is removed from exception list
parents 0b8145ee 0f2f1f2c
......@@ -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
......
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