diff --git a/openedx/core/djangoapps/notifications/email/utils.py b/openedx/core/djangoapps/notifications/email/utils.py index 81a245b2cf12..582e867d629d 100644 --- a/openedx/core/djangoapps/notifications/email/utils.py +++ b/openedx/core/djangoapps/notifications/email/utils.py @@ -3,7 +3,6 @@ """ import datetime import json -import logging from bs4 import BeautifulSoup from django.conf import settings @@ -32,7 +31,6 @@ User = get_user_model() -log = logging.getLogger(__name__) def is_email_notification_flag_enabled(user=None): @@ -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" - user.id is null - {encrypted_username} ") notification_preference_unsubscribe_event(user)