Prevent Rails from writing models' data into development.log

Hi all

I store some images in my DB. Every time I do something with them using
Rails, Rails writes their binary data field into the development.log
file, what makes this very unreadable.

Is there a way to tell Rails which fields it can write to
development.log and which ones not?

Thanks
Josh

Hello Joshua,

I store some images in my DB. Every time I do something with them using
Rails, Rails writes their binary data field into the development.log
file, what makes this very unreadable.

Is there a way to tell Rails which fields it can write to
development.log and which ones not?

AC#filtered_parameter_logging can help.

See :

– Jean-François.


À la renverse.