Garrett,

I have config.filter_parameters = [:password, :document_file] in application.rb. :document_file is the name of the big column. I "puts" the array.inspect and confirmed that both password and document_file are there. The contents of the big column are still showing up in the log.

BTW, I was advised to store these data in the file system instead of the db, Unfortunately, the file system will be read-only once I deploy and I want to test in the environment that I will be using, so I set the rails tree to read only during some of my development and test operations (which is how I discovered that I needed to use the database for all dynamic data in the first place).

Thanks,

Donz



On 1/10/2011 10:33 PM, Garrett Lancaster wrote:
I believe you're looking for config.filter_parameters in application.rb. Note that filter_parameters is an array, so you can add to it with <<

Hope this helps,
Garrett Lancaster

------------------------------------------------------------------------

        donz <mailto:[email protected]>
January 10, 2011 6:30 PM


Hi, All!

I have been looking for a way to eliminate the contents of certain
large (e.g. pdf files) database columns from my development (and
production) logs using RoR 3 with no luck. I found many posts, etc.
about eliminating parameters (e.g. password) from the log, but nothing
about the contents of the db.

I have two reasons for this, 1) the verbosity and size of the log slow
down my development/debugging, and 2) writing these columns definitely
slows the operation of the site itself.

Can anyone help?

TIA

Donz

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

<<inline: compose-unknown-contact.jpg>>

Reply via email to