mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Add pw filtered #2757
This commit is contained in:
parent
b25aa80794
commit
d74063f1fe
2 changed files with 5 additions and 1 deletions
|
@ -2,3 +2,7 @@
|
|||
|
||||
# Configure sensitive parameters which will be filtered from the log file.
|
||||
Rails.application.config.filter_parameters += [:password]
|
||||
|
||||
Rails.application.config.filter_parameters << lambda do |key, value|
|
||||
frame.gsub!(/pw>.+<\//, 'pw>[FILTERED]</') if key =~ /frame|raw_frame/i
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue