From e7c0f361482b5d1b373bba688d083325d85ff8a9 Mon Sep 17 00:00:00 2001 From: noraiz-anwar Date: Mon, 11 Dec 2017 20:24:07 +0500 Subject: [PATCH] temporary logs to check if anonymous user is accessing courseware --- lms/djangoapps/grades/signals/handlers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lms/djangoapps/grades/signals/handlers.py b/lms/djangoapps/grades/signals/handlers.py index 12c7acb4a2..2b5521d0f2 100644 --- a/lms/djangoapps/grades/signals/handlers.py +++ b/lms/djangoapps/grades/signals/handlers.py @@ -148,6 +148,11 @@ def score_published_handler(sender, block, user, raw_earned, raw_possible, only_ if update_score: # Set the problem score in CSM. + + # adding temporary log for understanding EDUCATOR-1931 + if user.is_anonymous(): + log.info("Problem [%s] was accessed by anonymous user", block.location) + score_modified_time = set_score(user.id, block.location, raw_earned, raw_possible) # Set the problem score on the xblock.