Skip to content
Snippets Groups Projects
Unverified Commit 4bdb8c56 authored by Awais Jibran's avatar Awais Jibran Committed by GitHub
Browse files

Merge pull request #23986 from edx/aj/improve-logging-for-capa

Adding logs in capa_base
parents fe2abafc 0dc5bacf
No related branches found
No related tags found
No related merge requests found
......@@ -1214,6 +1214,12 @@ class CapaMixin(ScorableXBlockMixin, CapaFields):
# Too late. Cannot submit
if self.closed():
problem_location = text_type(self.location)
if 'HarvardX+MCB80.1x+3T2019' in problem_location:
log.info(
'Problem %s closed, close date: %s, attempts: %s/%s, is_past_due: %s',
problem_location, self.close_date, self.attempts, self.max_attempts, self.is_past_due()
)
event_info['failure'] = 'closed'
self.track_function_unmask('problem_check_fail', event_info)
raise NotFoundError(_("Problem is closed."))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment