Sha256: 68ca4a5473eb7aca6530698d9255054a370351968ad464668e42ff6a3dd4694e

Contents?: true

Size: 641 Bytes

Versions: 21

Compression:

Stored size: 641 Bytes

Contents

# frozen_string_literal: true

module NeetoCommonsBackend
  module Initializers
    class << self
      def honeybadger
        Honeybadger.configure do |config|
          # Disable logging
          config.logging.path = "/dev/null"
          config.logging.level = "WARN"
          config.exceptions.notify_at_exit = false
          config.before_notify do |notice|
            break if notice.component != "errors"

            params = Rails.application.routes.recognize_path(notice.url)
            notice.component = params[:controller]
            notice.action = params[:action]
          end
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
neeto-commons-backend-1.0.89 lib/neeto_commons_backend/initializers/honeybadger.rb