Finish upgrading the sentry plugin
This commit is contained in:
parent
fcbbd54f84
commit
c107f36f6d
4 changed files with 7 additions and 3 deletions
1
Gemfile
1
Gemfile
|
|
@ -143,6 +143,7 @@ gem 'axlsx_rails'
|
|||
|
||||
gem 'sentry-ruby'
|
||||
gem 'sentry-rails'
|
||||
gem 'sentry-delayed_job'
|
||||
|
||||
# to make links faster
|
||||
gem 'turbolinks'
|
||||
|
|
|
|||
|
|
@ -525,6 +525,8 @@ GEM
|
|||
selenium-webdriver (3.142.6)
|
||||
childprocess (>= 0.5, < 4.0)
|
||||
rubyzip (>= 1.2.2)
|
||||
sentry-delayed_job (4.2.1)
|
||||
sentry-ruby-core (~> 4.2.0)
|
||||
sentry-rails (4.2.2)
|
||||
rails (>= 5.0)
|
||||
sentry-ruby-core (~> 4.2.0)
|
||||
|
|
@ -712,6 +714,7 @@ DEPENDENCIES
|
|||
ruby-oembed
|
||||
sass-rails (>= 4.0.2)
|
||||
selectize-rails
|
||||
sentry-delayed_job
|
||||
sentry-rails
|
||||
sentry-ruby
|
||||
shoulda-matchers
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
Raven.configure do |config|
|
||||
Sentry.init do |config|
|
||||
config.allowed_environments = %|production staging|
|
||||
config.dsn = ENV['SENTRY_DSN']
|
||||
config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ on_worker_boot do
|
|||
end
|
||||
|
||||
lowlevel_error_handler do |ex, env|
|
||||
Raven.capture_exception(
|
||||
Sentry.capture_exception(
|
||||
ex,
|
||||
:message => ex.message,
|
||||
:extra => { :puma => env },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue