Sha256: 688dd73ea2cf564db53014dffe14ce6e0f2a9f975aa5977f81b6ef82cb72a212

Contents?: true

Size: 960 Bytes

Versions: 41

Compression:

Stored size: 960 Bytes

Contents

require 'exception_notification/rails'
require 'exception_notification/sidekiq'

ExceptionNotification.configure do |config|
  # Ignore additional exception types.
  # ActiveRecord::RecordNotFound, AbstractController::ActionNotFound and ActionController::RoutingError are already added.
  # config.ignored_exceptions += %w{ActionView::TemplateError CustomError}

  # Adds a condition to decide when an exception must be ignored or not.
  # The ignore_if method can be invoked multiple times to add extra conditions.
  config.ignore_if do |exception, options|
    not Rails.env.production?
  end

  # Notifiers =================================================================

  # Email notifier sends notifications by email.
  config.add_notifier :email, {
      :email_prefix         => ENV['EXCEPTION_NOTIFICATION_EMAIL_PREFIX'],
      :sender_address       => ENV['EXCEPTION_NOTIFICATION_SENDER'],
      :exception_recipients => ENV['ADMIN_EMAIL']
  }
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
railman-0.2.0 templates/rails_app/config/initializers/exception_notification.rb