comment out notifications

This commit is contained in:
olegphenomenon 2022-02-09 11:05:23 +02:00
parent d2e7148f4f
commit d99330a098
2 changed files with 4 additions and 4 deletions

View file

@ -109,14 +109,14 @@ class NameserverRecordValidationJob < ApplicationJob
end
def inform_to_tech_contact(domain:, nameserver:, text: nil)
ContactNotification.notify_tech_contact(domain: domain, nameserver: nameserver, reason: 'nameserver')
# ContactNotification.notify_tech_contact(domain: domain, nameserver: nameserver, reason: 'nameserver')
end
def inform_to_registrar(nameserver:, text: nil)
text = "Host record #{nameserver.hostname} of a domain #{nameserver.domain} is invalid.
Please fix or contact the registrant. Problem with nameserver #{nameserver} - #{nameserver.failed_validation_reason}"
logger.info text
ContactNotification.notify_registrar(domain: nameserver.domain, text: text)
# ContactNotification.notify_registrar(domain: nameserver.domain, text: text)
end
def logger

View file

@ -50,8 +50,8 @@ class ValidateDnssecJob < ApplicationJob
text = "DNSKEY record of a domain #{domain.name} is invalid. Please fix or contact the registrant."
logger.info text
ContactNotification.notify_registrar(domain: domain, text: text)
ContactNotification.notify_tech_contact(domain: domain, reason: 'dnssec')
# ContactNotification.notify_registrar(domain: domain, text: text)
# ContactNotification.notify_tech_contact(domain: domain, reason: 'dnssec')
end
def validate(hostname:, domain:, type: 'DNSKEY', klass: 'IN')