mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Add more logging #2796
This commit is contained in:
parent
95a73327db
commit
6d3f2f611b
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
||||||
class Registrar::DeppController < RegistrarController # EPP controller
|
class Registrar::DeppController < RegistrarController # EPP controller
|
||||||
helper_method :depp_current_user
|
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)
|
redirect_to registrar_login_url, alert: t(:no_connection_to_registry)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue