improve logging

This commit is contained in:
Son 2021-02-06 17:31:06 +01:00
parent 3f7d325e6e
commit cd3854561a
1 changed files with 3 additions and 1 deletions

View File

@ -638,7 +638,9 @@ def check_custom_domain():
# send alert if fail for 5 consecutive days
if custom_domain.nb_failed_checks > 5:
domain_dns_url = f"{URL}/dashboard/domains/{custom_domain.id}/dns"
LOG.warning("Alert %s about %s", user, custom_domain)
LOG.warning(
"Alert domain MX check fails %s about %s", user, custom_domain
)
send_email_with_rate_control(
user,
AlERT_WRONG_MX_RECORD_CUSTOM_DOMAIN,