Skip to content

Commit

Permalink
Update Sentry config (#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
martikat authored Oct 8, 2024
1 parent 69d798c commit a7afd44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ class Application < Rails::Application
config.gov_one_private_key = credentials.dig(:gov_one, :private_key)
config.gov_one_client_id = credentials.dig(:gov_one, :client_id)

# Sentry
config.sentry_dsn = ENV.fetch('SENTRY_DSN', '#SENTRY_DSN_env_var_missing')

# @return [Boolean]
def live?
ENV['ENVIRONMENT'].eql?('production')
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/sentry.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Sentry.init do |config|
config.dsn = 'https://[email protected]/6274651'
config.dsn = Rails.application.config.sentry_dsn
config.breadcrumbs_logger = %i[active_support_logger http_logger]
config.enabled_environments = %w[production]
# config.enabled_environments = %w[development production]
Expand Down

0 comments on commit a7afd44

Please sign in to comment.