mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Notify airbrake for epp errors
This commit is contained in:
parent
e08f11870c
commit
7a19b509e8
1 changed files with 12 additions and 3 deletions
|
@ -40,9 +40,18 @@ class EppController < ApplicationController
|
||||||
}]
|
}]
|
||||||
end
|
end
|
||||||
|
|
||||||
logger.error e.message
|
if Rails.env.test? || Rails.env.development?
|
||||||
|
# rubocop:disable Rails/Output
|
||||||
|
puts e.backtrace.reverse.join("\n")
|
||||||
|
puts "\nFROM-EPP-RESCUE: #{e.message}\n"
|
||||||
|
# rubocop:enable Rails/Output
|
||||||
|
else
|
||||||
|
logger.error "FROM-EPP-RESCUE: #{e.message}"
|
||||||
logger.error e.backtrace.join("\n")
|
logger.error e.backtrace.join("\n")
|
||||||
|
|
||||||
# TODO: NOITFY AIRBRAKE / ERRBIT HERE
|
# TODO: NOITFY AIRBRAKE / ERRBIT HERE
|
||||||
|
NewRelic::Agent.notice_error(e)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
render_epp_response '/epp/error'
|
render_epp_response '/epp/error'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue