Skip to content

Commit

Permalink
Update config for Sentry (#868)
Browse files Browse the repository at this point in the history
  • Loading branch information
martikat authored Oct 1, 2024
1 parent 7be0c5a commit 36e687e
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 @@ -54,6 +54,9 @@ class Application < Rails::Application
config.active_record.legacy_connection_handling = false
config.generators.test_framework = :rspec

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

#
# Azure Environments
#
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]/6274627'
config.dsn = Rails.application.config.sentry_dsn
config.breadcrumbs_logger = %i[active_support_logger http_logger]
config.enabled_environments = %w[production]

Expand Down

0 comments on commit 36e687e

Please sign in to comment.