Add more logging #2796

This commit is contained in:
Martin Lensment 2015-07-27 18:30:19 +03:00
parent 95a73327db
commit 6d3f2f611b

View file

@ -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