demarches-normaliennes/config/initializers/sentry.rb
2021-01-28 15:31:27 +01:00

6 lines
246 B
Ruby

Sentry.init do |config|
config.dsn = ENV['SENTRY_ENABLED'] == 'enabled' ? ENV['SENTRY_DSN_RAILS'] : nil
config.send_default_pii = false
config.enabled_environments = ['production']
config.breadcrumbs_logger = [:active_support_logger]
end