def log_message(notification: BaseNotification, recipient: Team | User) -> None: extra = notification.get_log_params(recipient) logger.info("mail.adapter.notify.mail_user", extra={**extra})
def log_message(notification: BaseNotification, recipient: Team | User) -> None: extra = notification.get_log_params(recipient) logger.info("mail.adapter.notify.mail_user", extra={**extra}) notification.record_notification_sent(recipient, ExternalProviders.EMAIL)