vectordotdev / timber-ruby

🌲 Great Ruby logging made easy.
https://timber.io
Other
154 stars 19 forks source link

Ensure Timber respects Rails' filter_params #151

Open binarylogic opened 7 years ago

binarylogic commented 7 years ago

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 commented 5 years ago

This piece of code should do the trick for rails

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