>> donz >> 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?
You want it removed from the "SQL (1.2ms) INSERT...." line in the logs?
filter_params will remove it from the "Parameters: {...." line.
I think you're only option for removing it from the SQL in the log itself is to
silence the active record logger whenever you do something that generates those
queries.
It's not an issue in production as production doesn't log the sql queries...
-philip
--
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>>

