Skip to content

Commit

Permalink
Silence ActiveJob logging from DfE::Analytics
Browse files Browse the repository at this point in the history
This is extremely noisy and causes us to exceed our logit.io limit
  • Loading branch information
duncanjbrown committed Sep 16, 2022
1 parent 43f7c07 commit 856d86d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/dfe/analytics/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ class Railtie < Rails::Railtie
app.config.middleware.use DfE::Analytics::Middleware::RequestIdentity
end

initializer 'dfe.analytics.logger' do
ActiveSupport.on_load(:active_job) do
DfE::Analytics::AnalyticsJob.logger = ActiveSupport::TaggedLogging.new(Logger.new(IO::NULL))
end
end

config.after_initialize do
# internal gem tests will sometimes suppress this so they can test the
# init process
Expand Down

0 comments on commit 856d86d

Please sign in to comment.