Sha256: 1780daeae49be613e5d11ce150d42ae64520bf2ee43285a2bfafd7612e684c3f

Contents?: true

Size: 514 Bytes

Versions: 7

Compression:

Stored size: 514 Bytes

Contents

module Sentry
  module Rails
    module Overrides
      module StreamingReporter
        def log_error(exception)
          Sentry.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.capture_exception(exception)
          log_error_without_raven(exception)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sentry-rails-4.1.1 lib/sentry/rails/overrides/streaming_reporter.rb
sentry-rails-4.1.0 lib/sentry/rails/overrides/streaming_reporter.rb
sentry-rails-4.0.0 lib/sentry/rails/overrides/streaming_reporter.rb
sentry-rails-0.3.0 lib/sentry/rails/overrides/streaming_reporter.rb
sentry-rails-0.2.0 lib/sentry/rails/overrides/streaming_reporter.rb
sentry-rails-0.1.2 lib/sentry/rails/overrides/streaming_reporter.rb
sentry-rails-0.1.1 lib/sentry/rails/overrides/streaming_reporter.rb