exception_notification.rb revision 1dd0f9a30e748782de220118a3ba439cf840e015
427N/Aconfig = Settings.exception_notifier
427N/A
427N/Aif config.try(:enabled)
427N/A
427N/A require 'exception_notification/rails'
427N/A require 'exception_notification/sidekiq'
427N/A
427N/A ExceptionNotification.configure do |en|
427N/A # Ignore additional exception types.
427N/A # ActiveRecord::RecordNotFound, AbstractController::ActionNotFound and ActionController::RoutingError are already added.
427N/A # en.ignored_exceptions += %w{ActionView::TemplateError CustomError}
427N/A
427N/A # Email notifier sends notifications by email.
427N/A en.add_notifier :email, config.to_hash
427N/A end
427N/A
427N/Aend
427N/A