Commit a19d2e76 by Adam Palay

quiet some noisy logs

parent 933fdae5
...@@ -1067,8 +1067,11 @@ class CapaMixin(CapaFields): ...@@ -1067,8 +1067,11 @@ class CapaMixin(CapaFields):
self.set_last_submission_time() self.set_last_submission_time()
except (StudentInputError, ResponseError, LoncapaProblemError) as inst: except (StudentInputError, ResponseError, LoncapaProblemError) as inst:
log.warning("StudentInputError in capa_module:problem_check", if self.runtime.DEBUG:
exc_info=True) log.warning(
"StudentInputError in capa_module:problem_check",
exc_info=True
)
# Save the user's state before failing # Save the user's state before failing
self.set_state_from_lcp() self.set_state_from_lcp()
......
...@@ -98,8 +98,8 @@ class CapaModule(CapaMixin, XModule): ...@@ -98,8 +98,8 @@ class CapaModule(CapaMixin, XModule):
try: try:
result = handlers[dispatch](data) result = handlers[dispatch](data)
except NotFoundError as err: except NotFoundError:
log.exception( log.info(
"Unable to find data when dispatching %s to %s for user %s", "Unable to find data when dispatching %s to %s for user %s",
dispatch, dispatch,
self.scope_ids.usage_id, self.scope_ids.usage_id,
......
...@@ -1244,7 +1244,7 @@ class CourseDescriptor(CourseFields, SequenceDescriptor, LicenseMixin): ...@@ -1244,7 +1244,7 @@ class CourseDescriptor(CourseFields, SequenceDescriptor, LicenseMixin):
raise ValueError raise ValueError
return ret return ret
except (TypeError, ValueError): except (TypeError, ValueError):
log.exception( log.info(
"Error parsing discussion_blackouts %s for course %s", "Error parsing discussion_blackouts %s for course %s",
self.discussion_blackouts, self.discussion_blackouts,
self.id self.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