Commit 03585a48 by Awais Jibran

Merge pull request #11657 from edx/aj/ECOM3688-add-log-in-cert-gen

Improve logging in certification generation
parents f09e9f02 d18f3f6c
......@@ -281,6 +281,21 @@ class XQueueCertInterface(object):
if forced_grade:
grade['grade'] = forced_grade
LOGGER.info(
(
u"Certificate generated for student %s in the course: %s with template: %s. "
u"given template: %s, "
u"user is verified: %s, "
u"mode is verified: %s"
),
student.username,
unicode(course_id),
template_pdf,
template_file,
user_is_verified,
mode_is_verified
)
cert, created = GeneratedCertificate.objects.get_or_create(user=student, course_id=course_id) # pylint: disable=no-member
cert.mode = cert_mode
......
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