Drop noisy grades logging to debug level
These need to be dropped down to avoid splunk, as they are currently flooding our infrastructure.
This commit is contained in:
@@ -220,7 +220,7 @@ class CourseGrade(object):
|
||||
)
|
||||
|
||||
for receiver, response in responses:
|
||||
log.info(
|
||||
log.debug(
|
||||
'Signal fired when student grade is calculated. Receiver: %s. Response: %s',
|
||||
receiver, response
|
||||
)
|
||||
|
||||
@@ -80,7 +80,7 @@ class SubsectionGrade(object):
|
||||
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._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):
|
||||
"""
|
||||
@@ -112,7 +112,7 @@ class SubsectionGrade(object):
|
||||
section=self.display_name,
|
||||
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
|
||||
def bulk_create_models(cls, student, subsection_grades, course_key):
|
||||
@@ -275,7 +275,7 @@ class SubsectionGradeFactory(object):
|
||||
If read_only is True, doesn't save any updates to the grades.
|
||||
"""
|
||||
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)
|
||||
@@ -298,7 +298,7 @@ class SubsectionGradeFactory(object):
|
||||
"""
|
||||
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():
|
||||
SubsectionGrade.bulk_create_models(self.student, self._unsaved_subsection_grades, self.course.id)
|
||||
|
||||
Reference in New Issue
Block a user