diff --git a/server/model/domain_expiry.js b/server/model/domain_expiry.js index 91d5b54e3..b7992575f 100644 --- a/server/model/domain_expiry.js +++ b/server/model/domain_expiry.js @@ -176,14 +176,6 @@ class DomainExpiry extends BeanModel { const rdap = await getRdapServer(tld.publicSuffix); if (!rdap) { - // Only warn when the monitor actually has domain expiry notifications enabled. - // The edit monitor page calls this method frequently while the user is typing. - if (Boolean(monitor.domainExpiryNotification)) { - log.warn( - "domain_expiry", - `Domain expiry unsupported for '.${tld.publicSuffix}' because its RDAP endpoint is not listed in the IANA database.` - ); - } throw new TranslatableError("domain_expiry_unsupported_unsupported_tld_no_rdap_endpoint", { publicSuffix: tld.publicSuffix, }); diff --git a/server/model/monitor.js b/server/model/monitor.js index 01d655f23..e01977133 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -1059,7 +1059,15 @@ class Monitor extends BeanModel { log.debug("monitor", `Failed getting expiration date for domain ${supportInfo.domain}`); } } catch (error) { - // purposely not logged due to noise. Is accessible via checkMointor + if ( + error.message === "domain_expiry_unsupported_unsupported_tld_no_rdap_endpoint" && + Boolean(this.domainExpiryNotification) + ) { + log.warn( + "domain_expiry", + `Domain expiry unsupported for '.${error.meta.publicSuffix}' because its RDAP endpoint is not listed in the IANA database.` + ); + } } }