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

Use background logger for dynflow/rake

parent 3b0d70be
No related branches found
No related tags found
No related merge requests found
Pipeline #144570 failed
......@@ -6,7 +6,11 @@ require 'sentry-sidekiq'
# rubocop:disable Metrics/BlockLength
Sentry.init do |config|
config.logger = Foreman::Logging.logger('foreman_cement/sentry')
if Rails.const_defined? 'Server'
config.logger = Foreman::Logging.logger('foreman_cement/sentry')
else
config.logger = Foreman::Logging.logger('background')
end
config.dsn = SETTINGS.with_indifferent_access['sentry_dsn']
config.release = SETTINGS[:version].version
config.breadcrumbs_logger = %i[active_support_logger http_logger]
......
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