Skip to content

Commit

Permalink
Don't display Sentry's missing DSN message outside production.
Browse files Browse the repository at this point in the history
  • Loading branch information
connorshea committed Jun 23, 2019
1 parent b90b0b1 commit c8ddc2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ class Application < Rails::Application
generate.controller_specs false
end

Raven.configure do |config|
config.dsn = ENV['SENTRY_DSN']
if Rails.env.production?
Raven.configure do |config|
config.dsn = ENV['SENTRY_DSN']
end
end

# Add spec to the directories that 'rails notes' checks.
Expand Down

0 comments on commit c8ddc2b

Please sign in to comment.