Merge pull request #9231 from kleph/8926-filter_out_ping_from_centralized_logs

tech(logs): prevent /ping requests from being written in centralized logs
This commit is contained in:
Colin Darie 2023-06-22 10:34:56 +00:00 committed by GitHub
commit cc99d6d56b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,6 +40,7 @@ Rails.application.configure do
config.lograge.keep_original_rails_log = true
config.lograge.logger = ActiveSupport::Logger.new(Rails.root.join('log', "logstash_#{Rails.env}.log"))
config.lograge.ignore_actions = ['PingController#index']
end
Rails.application.config.after_initialize do |app|