mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 17:28:31 +02:00
debug logs
This commit is contained in:
parent
6c605566a2
commit
1b7408aebc
3 changed files with 3 additions and 1 deletions
|
@ -0,0 +1 @@
|
|||
Change Notification
|
|
@ -180,7 +180,7 @@ def email_domain_managers(domain, template: str, subject_template: str, context:
|
|||
"""
|
||||
managers = UserDomainRole.objects.filter(domain=domain, role=UserDomainRole.Roles.MANAGER)
|
||||
emails = list(managers.values_list("user", flat=True).values_list("email", flat=True))
|
||||
|
||||
logger.debug("attempting to send templated email to domain managers")
|
||||
try:
|
||||
send_templated_email(
|
||||
template,
|
||||
|
|
|
@ -472,6 +472,7 @@ class DomainNameserversView(DomainFormBaseView):
|
|||
|
||||
# if the nameservers where changed, send notification to domain managers.
|
||||
if should_notify:
|
||||
logger.debug("Sending email to domain managers")
|
||||
context={
|
||||
"domain": self.object,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue