Skip to content

Commit

Permalink
chore: added verification logs in edx.ace.message_sent event (#36074)
Browse files Browse the repository at this point in the history
  • Loading branch information
AhtishamShahid authored Jan 6, 2025
1 parent 1d913be commit 85ecad1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lms/djangoapps/bulk_email/signals.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""
Signal handlers for the bulk_email app
"""
import logging

from django.dispatch import receiver
from eventtracking import tracker

Expand All @@ -10,6 +12,8 @@

from .models import Optout

log = logging.getLogger(__name__)


@receiver(USER_RETIRE_MAILINGS)
def force_optout_all(sender, **kwargs): # lint-amnesty, pylint: disable=unused-argument
Expand Down Expand Up @@ -43,7 +47,7 @@ def ace_email_sent_handler(sender, **kwargs):
if not course_id:
course_email = context.get('course_email', None)
course_id = course_email.course_id if course_email else None

log.info(f'Email sent for {message_name} for course {course_id} using channel {channel}')
tracker.emit(
'edx.ace.message_sent',
{
Expand Down

0 comments on commit 85ecad1

Please sign in to comment.