Reduce noise in CourseOverview->Modulestore fallback (#25434)

This was originally intended as a placeholder to remind us to
optimize the data model for sequence metadata API calls (say
by adding those fields to the CourseOverview model itself).
Logging a quarter million messages a day is overkill for this
purpose, and we will be doing another pass at the performance of
this code in the coming weeks/months.
This commit is contained in:
David Ormsbee
2020-10-26 10:27:14 -04:00
committed by GitHub
parent 023d364d33
commit ab622d2bf8

View File

@@ -776,7 +776,6 @@ class CourseOverview(TimeStampedModel):
"""
Returns the course from the modulestore.
"""
log.warning('Falling back on modulestore to get course information for %s', self.id)
return modulestore().get_course(self.id)
@property