Downgrade content-highlights mismatches to warnings, and add the course-key to the error message

This commit is contained in:
Calen Pennington
2019-09-04 15:27:35 -04:00
parent 42ec910e07
commit 9a800fb180

View File

@@ -36,8 +36,9 @@ def course_has_highlights(course_key):
)
if not highlights_are_available:
log.error(
"Course team enabled highlights and provided no highlights."
log.warning(
u"Course team enabled highlights and provided no highlights in %s",
course_key
)
return highlights_are_available