From 2bb4728ab8f42bf9e48b9bc0a4ec200c4120b2e4 Mon Sep 17 00:00:00 2001 From: Muhammad Adeel Tajamul <77053848+muhammadadeeltajamul@users.noreply.github.com> Date: Fri, 18 Oct 2024 17:01:44 +0500 Subject: [PATCH] chore: removed temp logs in email digest (#35663) --- openedx/core/djangoapps/notifications/email/utils.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/openedx/core/djangoapps/notifications/email/utils.py b/openedx/core/djangoapps/notifications/email/utils.py index 81a245b2cf..582e867d62 100644 --- a/openedx/core/djangoapps/notifications/email/utils.py +++ b/openedx/core/djangoapps/notifications/email/utils.py @@ -3,7 +3,6 @@ Email Notifications Utils """ import datetime import json -import logging from bs4 import BeautifulSoup from django.conf import settings @@ -32,7 +31,6 @@ from .notification_icons import NotificationTypeIcons User = get_user_model() -log = logging.getLogger(__name__) def is_email_notification_flag_enabled(user=None): @@ -413,6 +411,4 @@ def update_user_preferences_from_patch(encrypted_username, encrypted_patch): 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)