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.6.7 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.6 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.5 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.4 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.3 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.2 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.1 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.0 templates/rails_app/config/initializers/exception_notification.rb
railman-0.5.2 templates/rails_app/config/initializers/exception_notification.rb
railman-0.5.1 templates/rails_app/config/initializers/exception_notification.rb
railman-0.5.0 templates/rails_app/config/initializers/exception_notification.rb
railman-0.4.0 templates/rails_app/config/initializers/exception_notification.rb
railman-0.3.7 templates/rails_app/config/initializers/exception_notification.rb
railman-0.3.6 templates/rails_app/config/initializers/exception_notification.rb
railman-0.3.5 templates/rails_app/config/initializers/exception_notification.rb
railman-0.3.4 templates/rails_app/config/initializers/exception_notification.rb
railman-0.3.3 templates/rails_app/config/initializers/exception_notification.rb
railman-0.3.2 templates/rails_app/config/initializers/exception_notification.rb
railman-0.3.1 templates/rails_app/config/initializers/exception_notification.rb
railman-0.3.0 templates/rails_app/config/initializers/exception_notification.rb