prevent /ping requests from being written in centralized_logs

fix #8926
This commit is contained in:
kleph 2023-06-21 17:11:32 +02:00
parent 32cc6aefb8
commit 976f46717b

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|