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:
commit
cc99d6d56b
1 changed files with 1 additions and 0 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue