How can I filter a specific field from SQL Rails logs?

I know about filter_parameter_logging for query parameters, but this only works for query parameters. I do not want certain user personal data in the logs, but I need to keep a debug log. I hope for a better solution that promises the ActiveRecord patch and replaces the SQL string.

For reference, this is a Rails 2.3 project.

+5
source share
1 answer

I have not found a good way to do this. Considering how an active record registers instructions, there is no way to filter out a column other than parsing a row.

0
source

All Articles