Rails 5 offers parameter filtering, and I've specified config.filter_parameters += ["my_token"]
in application.rb
.
Testing my app in dev (environment) mode, I see my_token
is correctly filtered from the request lines of the log file:
Started GET "/something?my_token=[FILTERED]"
However, the SQL log lines immediately following still include the parameter's value in plain text ("SELECT stuff FROM things," etc., with my_token
as a param).
Does Rails 5 offer a way to filter this raw value from the SQL part of its log files?
I've also run my app in production mode, and though the log files are more succinct, they still display the value unfiltered in D-type log lines for the generated SQL statements.
I've specified no custom log settings--everything other than my filter parameter setting is by default.
My own search showed no relevant discussion of this. Maybe I'm missing something?
Thx!