mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 23:54:44 +02:00
added log output for a and aaaa validation
This commit is contained in:
parent
e31b18912d
commit
921cb93dbe
1 changed files with 5 additions and 0 deletions
|
@ -54,7 +54,12 @@ module Actions
|
||||||
email_domain = Mail::Address.new(@email).domain
|
email_domain = Mail::Address.new(@email).domain
|
||||||
|
|
||||||
result_validation = check_for_records_value(domain: email_domain, value: 'A')
|
result_validation = check_for_records_value(domain: email_domain, value: 'A')
|
||||||
|
logger.info "Validated A record for #{email_domain}. Validation result - #{result_validation}"
|
||||||
|
p "Validated A record for #{email_domain}. Validation result - #{result_validation}"
|
||||||
|
|
||||||
result_validation = check_for_records_value(domain: email_domain, value: 'AAAA') if result_validation.empty?
|
result_validation = check_for_records_value(domain: email_domain, value: 'AAAA') if result_validation.empty?
|
||||||
|
logger.info "Validated AAAA record for #{email_domain}. Validation result - #{result_validation}" if result_validation.empty?
|
||||||
|
p "Validated AAAA record for #{email_domain}. Validation result - #{result_validation}" if result_validation.empty?
|
||||||
|
|
||||||
result_validation.present? ? result.success = true : result.success = false
|
result_validation.present? ? result.success = true : result.success = false
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue