Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

email: Remove unused `log_digest_event` function.

Alex Vandiver2d71ca1fb83c
diff --git a/zerver/lib/email_notifications.py b/zerver/lib/email_notifications.py
index 9032572afb4..3dad2c5fa62 100644
--- a/zerver/lib/email_notifications.py
+++ b/zerver/lib/email_notifications.py
@@ -558,13 +558,6 @@ def handle_missedmessage_emails(user_profile_id: int,
message_count_by_bucket[bucket_tup],
)
-def log_digest_event(msg: str) -> None:
- import logging
- import time
- logging.Formatter.converter = time.gmtime
- logging.basicConfig(filename=settings.DIGEST_LOG_PATH, level=logging.INFO)
- logging.info(msg)
-
def followup_day2_email_delay(user: UserProfile) -> timedelta:
days_to_delay = 2
user_tz = user.timezone