Skip to content

Commit

Permalink
chore: removed temp logs in email digest (#35663)
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadadeeltajamul authored Oct 18, 2024
1 parent 23c4276 commit 2bb4728
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions openedx/core/djangoapps/notifications/email/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""
import datetime
import json
import logging

from bs4 import BeautifulSoup
from django.conf import settings
Expand Down Expand Up @@ -32,7 +31,6 @@


User = get_user_model()
log = logging.getLogger(__name__)


def is_email_notification_flag_enabled(user=None):
Expand Down Expand Up @@ -413,6 +411,4 @@ def get_updated_preference(pref):
if pref_value else EmailCadence.NEVER
type_prefs['email_cadence'] = cadence_value
preference.save()
if not user.id:
log.info(f"<Digest-One-Click-Unsubscribe> - user.id is null - {encrypted_username} ")
notification_preference_unsubscribe_event(user)

0 comments on commit 2bb4728

Please sign in to comment.