Skip to content
Snippets Groups Projects
Verified Commit 61e5b1f6 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Defer sentry SDK initialization even further

parent a44d7391
No related branches found
No related tags found
No related merge requests found
......@@ -17,12 +17,10 @@ module ForemanCement
end
end
initializer 'foreman_cement.configure_sentry', after: :load_environment_config do
require 'foreman_cement/configure_sentry' if SETTINGS.with_indifferent_access['sentry_dsn']
end
# Include concerns in this config.to_prepare block
config.to_prepare do
require 'foreman_cement/configure_sentry' if SETTINGS.with_indifferent_access['sentry_dsn']
::Foreman::Exception.include ForemanCement::Extensions::Foreman::Exception
::Foreman::LoggingImpl.include ForemanCement::Extensions::Foreman::Logging
::ApplicationController.include ForemanCement::ApplicationControllerExtensions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment