Forum: Ruby on Rails selectively disabling parameter logging in controllers

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1f1bd7de8337317975b0475be56392d2?d=identicon&s=25 Dan Tenenbaum (dandante)
on 2006-05-22 21:25
By default, Rails logs all parameters passed to a controller method.
As far as I can tell, this happens in both development and production
modes.

I have a form that collects some sensitive data. I don't want that data
sent to the log, at least not in production mode. Of course, I'd still
like to log everything else. Is there a way to accomplish this?
0f630dfa170eb15cb9bd041783b6551f?d=identicon&s=25 Tarmo =?ISO-8859-1?Q?T=E4nav?= (Guest)
on 2006-05-23 06:11
(Received via mailing list)
On E, 2006-05-22 at 21:25 +0200, Dan Tenenbaum wrote:
> By default, Rails logs all parameters passed to a controller method.
> As far as I can tell, this happens in both development and production
> modes.
>
> I have a form that collects some sensitive data. I don't want that data
> sent to the log, at least not in production mode. Of course, I'd still
> like to log everything else. Is there a way to accomplish this?
>
>

This should do exactly what you need:
http://wiki.rubyonrails.org/rails/pages/Filter+Log...


--
Tarmo Tänav <tarmo@itech.ee>
58c44a4a506d878f9a112f1d7b7cb87e?d=identicon&s=25 Jeremy Evans (Guest)
on 2006-05-23 18:16
(Received via mailing list)
On 5/22/06, Tarmo Tänav <tarmo@itech.ee> wrote:
> http://wiki.rubyonrails.org/rails/pages/Filter+Log...
Also note that this is in Edge Rails:
http://dev.rubyonrails.org/changeset/4200
This topic is locked and can not be replied to.