Rails 5 offers parameter filtering, and I specified config.filter_parameters += ["my_token"] in application.rb .
Testing my application in dev (environment) mode, I see that my_token correctly filtered from the query lines of the log file:
Started GET "/something?my_token=[FILTERED]"
However, the SQL log lines following it still include the parameter value in the text ("SELECT stuff FROM things", etc., with my_token as the parameter).
Does Rails 5 provide a way to filter this raw value from the SQL portion of its log files?
I also run my application in run mode, and although the log files are more compressed, they still display the value unfiltered in the D-type log lines for the generated SQL statements.
I didn’t set any configurable log parameters - by default everything except filter parameters,
My own search did not show a corresponding discussion of this. Maybe I missed something?
thanks!
source share