lib/sentry/rails/overrides/streaming_reporter.rb in sentry-rails-4.1.1 vs lib/sentry/rails/overrides/streaming_reporter.rb in sentry-rails-4.1.2
- old
+ new
@@ -1,21 +1,21 @@
module Sentry
module Rails
module Overrides
module StreamingReporter
def log_error(exception)
- Sentry.capture_exception(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.capture_exception(exception)
+ Sentry::Rails.capture_exception(exception)
log_error_without_raven(exception)
end
end
end
end