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

Make rubocop happier

parent 9ceb75b7
No related branches found
No related tags found
No related merge requests found
Pipeline #141975 passed
......@@ -4,6 +4,7 @@ require 'sentry-ruby'
require 'sentry-rails'
require 'sentry-sidekiq'
# rubocop:disable Metrics/BlockLength
Sentry.init do |config|
config.logger = Foreman::Logging.logger('foreman_cement')
config.dsn = SETTINGS.with_indifferent_access['sentry_dsn']
......@@ -11,7 +12,7 @@ Sentry.init do |config|
config.breadcrumbs_logger = %i[active_support_logger http_logger]
if SETTINGS.with_indifferent_access['sentry_trace']
main_rate = \
main_rate =
if SETTINGS.with_indifferent_access['sentry_trace'].is_a?(Hash)
SETTINGS.with_indifferent_access.dig('sentry_trace', 'rate') || 0.5
else
......@@ -46,3 +47,4 @@ Sentry.init do |config|
# filter.filter(event.to_hash)
# end
end
# rubocop:enable Metrics/BlockLength
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