Skip to content

Commit 973b9ca

Browse files
authored
Add temporary logging when saving answers (#1303)
1 parent 4c3e12c commit 973b9ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/cadet/assessments/assessments.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2979,6 +2979,10 @@ defmodule Cadet.Assessments do
29792979
) do
29802980
answer_content = build_answer_content(raw_answer, question.type)
29812981

2982+
Logger.info(
2983+
"(PA) Saving answer: cr_id=#{course_reg_id}, s_id=#{submission.id}, q_id=#{question.id}, answer=#{inspect(raw_answer)}"
2984+
)
2985+
29822986
if question.type == :voting do
29832987
insert_or_update_voting_answer(submission.id, course_reg_id, question.id, answer_content)
29842988
else

0 commit comments

Comments
 (0)