Sha256: 81112dfdce84d38147b74f752580c1882ce2a567ff18e80e5c8ae3250bce1474

Contents?: true

Size: 559 Bytes

Versions: 4

Compression:

Stored size: 559 Bytes

Contents

# frozen_string_literal: true

module Sentry
  module Rails
    module Overrides
      module StreamingReporter
        def log_error(exception)
          Sentry::Rails.capture_exception(exception)
          super
        end
      end

      module OldStreamingReporter
        def self.included(base)
          base.send(:alias_method_chain, :log_error, :raven)
        end

        def log_error_with_raven(exception)
          Sentry::Rails.capture_exception(exception)
          log_error_without_raven(exception)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sentry-rails-5.22.2 lib/sentry/rails/overrides/streaming_reporter.rb
sentry-rails-5.22.1 lib/sentry/rails/overrides/streaming_reporter.rb
sentry-rails-5.22.0 lib/sentry/rails/overrides/streaming_reporter.rb
sentry-rails-5.21.0 lib/sentry/rails/overrides/streaming_reporter.rb