debug logs

This commit is contained in:
matthewswspence 2024-09-12 15:12:38 -05:00
parent 6c605566a2
commit 1b7408aebc
No known key found for this signature in database
GPG key ID: FB458202A7852BA4
3 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1 @@
Change Notification

View file

@ -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) managers = UserDomainRole.objects.filter(domain=domain, role=UserDomainRole.Roles.MANAGER)
emails = list(managers.values_list("user", flat=True).values_list("email", flat=True)) emails = list(managers.values_list("user", flat=True).values_list("email", flat=True))
logger.debug("attempting to send templated email to domain managers")
try: try:
send_templated_email( send_templated_email(
template, template,

View file

@ -472,6 +472,7 @@ class DomainNameserversView(DomainFormBaseView):
# if the nameservers where changed, send notification to domain managers. # if the nameservers where changed, send notification to domain managers.
if should_notify: if should_notify:
logger.debug("Sending email to domain managers")
context={ context={
"domain": self.object, "domain": self.object,
} }