diff --git a/openedx/core/djangoapps/content/course_overviews/signals.py b/openedx/core/djangoapps/content/course_overviews/signals.py index 65d9e617b1..306e4a0002 100644 --- a/openedx/core/djangoapps/content/course_overviews/signals.py +++ b/openedx/core/djangoapps/content/course_overviews/signals.py @@ -88,5 +88,11 @@ def _check_for_pacing_changes(previous_course_overview, updated_course_overview) def _check_for_cert_availability_date_changes(previous_course_overview, updated_course_overview): + """ Checks if the cert available date has changed and if so, sends a COURSE_CERT_DATE_CHANGE signal""" if previous_course_overview.certificate_available_date != updated_course_overview.certificate_available_date: + LOG.info( + f"Certificate availability date for {str(updated_course_overview.id)} has changed from " + + f"{previous_course_overview.certificate_available_date} to " + + f"{updated_course_overview.certificate_available_date}. Sending COURSE_CERT_DATE_CHANGE signal." + ) COURSE_CERT_DATE_CHANGE.send_robust(sender=None, course_key=updated_course_overview.id) diff --git a/openedx/core/djangoapps/programs/tasks.py b/openedx/core/djangoapps/programs/tasks.py index 9af43dbdde..b26191f604 100644 --- a/openedx/core/djangoapps/programs/tasks.py +++ b/openedx/core/djangoapps/programs/tasks.py @@ -372,6 +372,10 @@ def award_course_certificate(self, username, course_run_key): # This is a known limitation of this implementation and was chosen to reduce the amount of replication, # endpoints, celery tasks, and jenkins jobs that needed to be written for this functionality visible_date = available_date_for_certificate(course_overview, certificate) + LOGGER.info( + "Task award_course_certificate will award certificate for course " + f"{course_key} with a visible date of {visible_date}" + ) post_course_certificate(credentials_client, username, certificate, visible_date) LOGGER.info(f"Awarded certificate for course {course_key} to user {username}")