Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Ensure Timber respects Rails' filter_params #151

Open
binarylogic opened this issue Sep 6, 2017 · 1 comment
Open

Ensure Timber respects Rails' filter_params #151

binarylogic opened this issue Sep 6, 2017 · 1 comment

Comments

@binarylogic
Copy link
Contributor

Timber should not log parameters specified in this list. Further, it should provide it's own option that this setting can be passed into, allowing non-Rails users to enable this as well.

@elia
Copy link

elia commented May 9, 2019

This piece of code should do the trick for rails

request.send(:parameter_filter).filter(request.parameters)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants