Skip to content

Commit 7fef010

Browse files
committed
delete old send email task
1 parent 9686ae4 commit 7fef010

3 files changed

Lines changed: 9 additions & 353 deletions

File tree

framework/email/tasks.py

Lines changed: 0 additions & 231 deletions
This file was deleted.

osf/models/notification.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ def send(
3232
if not protocol_type == 'email':
3333
raise NotImplementedError(f'Protocol type {protocol_type}. Email notifications are only implemented.')
3434
recipient_address = destination_address or self.subscription.user.username
35-
36-
logging.info(
37-
f"Attempting to send Notification:"
38-
f"\nto={getattr(self.subscription.user, 'username', destination_address)}"
39-
f"\nat={destination_address}"
40-
f"\ntype={self.subscription.notification_type}"
41-
f"\ncontext={self.event_context}"
42-
f"\nemail={email_context}"
43-
)
35+
if not api_settings.CI_ENV:
36+
logging.info(
37+
f"Attempting to send Notification:"
38+
f"\nto={getattr(self.subscription.user, 'username', destination_address)}"
39+
f"\nat={destination_address}"
40+
f"\ntype={self.subscription.notification_type}"
41+
f"\ncontext={self.event_context}"
42+
f"\nemail={email_context}"
43+
)
4444

4545
if protocol_type == 'email' and waffle.switch_is_active(features.ENABLE_MAILHOG):
4646
email.send_email_over_smtp(

tests/framework_tests/test_email.py

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)