From 6d3f2f611bbccd91867e3296a64819b8a8065ad9 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Mon, 27 Jul 2015 18:30:19 +0300 Subject: [PATCH] Add more logging #2796 --- app/controllers/registrar/depp_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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