lib/logstasher/log_subscriber.rb in rv-logstasher-1.3.2 vs lib/logstasher/log_subscriber.rb in rv-logstasher-1.4.0
- old
+ new
@@ -91,9 +91,12 @@
end
def extract_parameters(payload)
if LogStasher.include_parameters?
external_params = payload[:params].except(*INTERNAL_PARAMS)
+ LogStasher.filter_parameters.each do |param|
+ external_params[param] = '[FILTERED]' unless external_params[param].nil?
+ end
if LogStasher.serialize_parameters?
{ :params => JSON.generate(external_params) }
else
{ :params => external_params }