Parameter filtering in Elixir Phoenix logs
Sometimes you want to filter out parameters that are being logged (think GDPR compliance). Enter Phoenix's handy config filter_parameters
:
config :phoenix, :filter_parameters, ["password", "birthday"]
Or if you want to be extra safe, you can filter all parameters and only whitelist ones you want to see. For example: id
and order
:
config :phoenix, :filter_parameters, {:keep, ["id", "order"]}
Tweet