I see that I can filter keys from Rails logs here, but it's not entirely clear how I can filter a key that is nested inside the parameter hash.
My params hash looks like this:
{"download"=>{"attachment_id"=>"54039", "data"=>"data:image/png;base64,iVBORw0..."}}
Where params[:download][:data]
is a base64 string. It is a large amount of data and I would like to remove it from my logs.
Is this possible?
I'm using Rails 4.0.4
config.filter_parameters << {download: :data}
? – Panneconfig.filter_parameters += ["download.data"]
, as it was pointed out by the accepted anwser for this question – Postfix