From 92f32d4588d8d364691c276d5ea2f030b259652e Mon Sep 17 00:00:00 2001 From: Mark Murnane Date: Fri, 4 Aug 2023 00:27:48 -0400 Subject: [PATCH] Removing extra logging in email handler --- uber/tasks/email.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/uber/tasks/email.py b/uber/tasks/email.py index ba92fc839..bb3b3df0a 100644 --- a/uber/tasks/email.py +++ b/uber/tasks/email.py @@ -174,7 +174,6 @@ def send_automated_emails(): for model, query_func in AutomatedEmailFixture.queries.items(): log.info("Sending automated emails for " + model.__name__) automated_emails = automated_emails_by_model.get(model.__name__, []) - log.info("Found " + str(len(automated_emails)) + " emails for " + model.__name__) for automated_email in automated_emails: if automated_email.currently_sending: log.info(automated_email.ident + " is marked as currently sending") @@ -189,11 +188,8 @@ def send_automated_emails(): session.commit() unapproved_count = 0 - log.info("Loading instances for " + automated_email.ident) model_instances = query_func(session) - log.info("Finished loading instances") for model_instance in model_instances: - log.info("Checking " + str(model_instance.id)) if model_instance.id not in automated_email.emails_by_fk_id: if automated_email.would_send_if_approved(model_instance): if automated_email.approved or not automated_email.needs_approval: