Skip to content

Commit

Permalink
chore: added logs for goal reminder email (#35958)
Browse files Browse the repository at this point in the history
  • Loading branch information
AhtishamShahid authored Dec 12, 2024
1 parent 065adf3 commit d88fa76
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ def send_ace_message(goal, session_id):

with emulate_http_request(site, user):
try:
start_time = datetime.now()
ace.send(msg)
end_time = datetime.now()
log.info(f"Goal Reminder for {user.id} for course {goal.course_key} sent in {end_time - start_time} "
f"using {'SES' if is_ses_enabled else 'others'}")
except Exception as exc: # pylint: disable=broad-except
log.error(f"Goal Reminder for {user.id} for course {goal.course_key} could not send: {exc}")
tracker.emit(
Expand Down

0 comments on commit d88fa76

Please sign in to comment.