quiet some noisy logs

This commit is contained in:
Adam Palay
2016-07-06 16:32:27 -04:00
parent 933fdae5ba
commit a19d2e76ff
3 changed files with 8 additions and 5 deletions

View File

@@ -1067,8 +1067,11 @@ class CapaMixin(CapaFields):
self.set_last_submission_time()
except (StudentInputError, ResponseError, LoncapaProblemError) as inst:
log.warning("StudentInputError in capa_module:problem_check",
exc_info=True)
if self.runtime.DEBUG:
log.warning(
"StudentInputError in capa_module:problem_check",
exc_info=True
)
# Save the user's state before failing
self.set_state_from_lcp()

View File

@@ -98,8 +98,8 @@ class CapaModule(CapaMixin, XModule):
try:
result = handlers[dispatch](data)
except NotFoundError as err:
log.exception(
except NotFoundError:
log.info(
"Unable to find data when dispatching %s to %s for user %s",
dispatch,
self.scope_ids.usage_id,

View File

@@ -1244,7 +1244,7 @@ class CourseDescriptor(CourseFields, SequenceDescriptor, LicenseMixin):
raise ValueError
return ret
except (TypeError, ValueError):
log.exception(
log.info(
"Error parsing discussion_blackouts %s for course %s",
self.discussion_blackouts,
self.id