In my routes I have a route similar to GET 'check/:secret
.
When I send a request to that route in the logs I see:
Started GET "/check/the-secret-here" for ::1 at 2021-01-14 16:38:01 -0600
...
I want to filter/redact the secret so it looks like:
Started GET "/check/[FILTERED]" for ::1 at 2021-01-14 16:38:01 -0600
...
I'm using Rails 5.1, I've added config.filter_parameters += %i[secret]
which does filter the value but only on POST Params.