Commit 510b84ed by Eric Fischer Committed by GitHub

Merge pull request #13606 from edx/hotfix/2016-09-29b

Drop noisy grades logging to debug level
parents e2619bb2 ce067618
...@@ -220,7 +220,7 @@ class CourseGrade(object): ...@@ -220,7 +220,7 @@ class CourseGrade(object):
) )
for receiver, response in responses: for receiver, response in responses:
log.info( log.debug(
'Signal fired when student grade is calculated. Receiver: %s. Response: %s', 'Signal fired when student grade is calculated. Receiver: %s. Response: %s',
receiver, response receiver, response
) )
......
...@@ -80,7 +80,7 @@ class SubsectionGrade(object): ...@@ -80,7 +80,7 @@ class SubsectionGrade(object):
student, descendant_key, course_structure, scores_client, submissions_scores, persisted_values={}, student, descendant_key, course_structure, scores_client, submissions_scores, persisted_values={},
) )
self.all_total, self.graded_total = graders.aggregate_scores(self.scores, self.display_name, self.location) self.all_total, self.graded_total = graders.aggregate_scores(self.scores, self.display_name, self.location)
self._log_event(log.info, u"init_from_structure", student) self._log_event(log.debug, u"init_from_structure", student)
def init_from_model(self, student, model, course_structure, scores_client, submissions_scores): def init_from_model(self, student, model, course_structure, scores_client, submissions_scores):
""" """
...@@ -112,7 +112,7 @@ class SubsectionGrade(object): ...@@ -112,7 +112,7 @@ class SubsectionGrade(object):
section=self.display_name, section=self.display_name,
module_id=self.location, module_id=self.location,
) )
self._log_event(log.info, u"init_from_model", student) self._log_event(log.debug, u"init_from_model", student)
@classmethod @classmethod
def bulk_create_models(cls, student, subsection_grades, course_key): def bulk_create_models(cls, student, subsection_grades, course_key):
...@@ -275,7 +275,7 @@ class SubsectionGradeFactory(object): ...@@ -275,7 +275,7 @@ class SubsectionGradeFactory(object):
If read_only is True, doesn't save any updates to the grades. If read_only is True, doesn't save any updates to the grades.
""" """
self._log_event( self._log_event(
log.info, u"create, read_only: {0}, subsection: {1}".format(read_only, subsection.location) log.debug, u"create, read_only: {0}, subsection: {1}".format(read_only, subsection.location)
) )
block_structure = self._get_block_structure(block_structure) block_structure = self._get_block_structure(block_structure)
...@@ -298,7 +298,7 @@ class SubsectionGradeFactory(object): ...@@ -298,7 +298,7 @@ class SubsectionGradeFactory(object):
""" """
Bulk creates all the unsaved subsection_grades to this point. Bulk creates all the unsaved subsection_grades to this point.
""" """
self._log_event(log.info, u"bulk_create_unsaved") self._log_event(log.debug, u"bulk_create_unsaved")
with persistence_safe_fallback(): with persistence_safe_fallback():
SubsectionGrade.bulk_create_models(self.student, self._unsaved_subsection_grades, self.course.id) SubsectionGrade.bulk_create_models(self.student, self._unsaved_subsection_grades, self.course.id)
......
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