Add logging for domain transfer #2595

This commit is contained in:
Martin Lensment 2015-06-03 10:40:27 +03:00
parent 147892b4d9
commit 7a603d7ec6

View file

@ -395,7 +395,7 @@ class Epp::Domain < Domain
at[:domain_statuses_attributes] += at_add[:domain_statuses_attributes] at[:domain_statuses_attributes] += at_add[:domain_statuses_attributes]
if frame.css('registrant').present? && frame.css('registrant').attr('verified').to_s.downcase != 'yes' if frame.css('registrant').present? && frame.css('registrant').attr('verified').to_s.downcase != 'yes'
registrant_verification_asked! registrant_verification_asked!
end end
self.deliver_emails = true # turn on email delivery for epp self.deliver_emails = true # turn on email delivery for epp
@ -415,7 +415,7 @@ class Epp::Domain < Domain
return false unless valid? return false unless valid?
if frame.css('delete').attr('verified').to_s.downcase != 'yes' if frame.css('delete').attr('verified').to_s.downcase != 'yes'
registrant_verification_asked! registrant_verification_asked!
pending_delete! pending_delete!
manage_automatic_statuses manage_automatic_statuses
true # aka 1001 pending_delete true # aka 1001 pending_delete
@ -550,6 +550,7 @@ class Epp::Domain < Domain
return dt return dt
rescue => _e rescue => _e
add_epp_error('2306', nil, nil, I18n.t('action_failed_due_to_server_error')) add_epp_error('2306', nil, nil, I18n.t('action_failed_due_to_server_error'))
logger.error(e)
raise ActiveRecord::Rollback raise ActiveRecord::Rollback
end end
end end