File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff 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"\n to={ getattr (self .subscription .user , 'username' , destination_address )} "
39- f"\n at={ destination_address } "
40- f"\n type={ self .subscription .notification_type } "
41- f"\n context={ self .event_context } "
42- f"\n email={ email_context } "
43- )
35+ if not api_settings . CI_ENV :
36+ logging .info (
37+ f"Attempting to send Notification:"
38+ f"\n to={ getattr (self .subscription .user , 'username' , destination_address )} "
39+ f"\n at={ destination_address } "
40+ f"\n type={ self .subscription .notification_type } "
41+ f"\n context={ self .event_context } "
42+ f"\n email={ email_context } "
43+ )
4444
4545 if protocol_type == 'email' and waffle .switch_is_active (features .ENABLE_MAILHOG ):
4646 email .send_email_over_smtp (
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments