theforeman/foreman — pull request #1548 by dustint-rh (2014-06-30 03:36:00+00:00)
Title: Fixes #6411 - filter params by path BZ1111484

there is an issue where certain parameters for particular
controllers are causing the log to fill up. This allows the ability
to filter parameters scoped to request path.

Example:

In an initializer, you can filter the parameters, content and name,
for all requests where the path contain 'content_uploads'.

Foreman::Middleware::
CustomAcLogSubscriberConfig.config[:filter_parameters_by_request_path] +=
[{ :path => 'content_uploads', :names => [:content] }]

value for the parameters, content and name, will be filtered for
urls like:
/domain/content_uploads
/katello/content_uploads/1

also configure using the plugin:

filter_parameters_by_request_path do |configs|
configs << {:path => 'content_uploads', :names => [:content]}
end