diff --git a/app/controllers/registrar/depp_controller.rb b/app/controllers/registrar/depp_controller.rb index 753a8a6e0..aff0406a3 100644 --- a/app/controllers/registrar/depp_controller.rb +++ b/app/controllers/registrar/depp_controller.rb @@ -1,7 +1,10 @@ class Registrar::DeppController < RegistrarController # EPP controller helper_method :depp_current_user - rescue_from(Errno::ECONNRESET, Errno::ECONNREFUSED) do |_exception| + rescue_from(Errno::ECONNRESET, Errno::ECONNREFUSED) do |exception| + logger.error 'COULD NOT CONNECT TO REGISTRY' + logger.error exception.backtrace.join("\n") + NewRelic::Agent.notice_error(exception) redirect_to registrar_login_url, alert: t(:no_connection_to_registry) end