mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
parent
6e46c0a8e0
commit
416f3810d2
2 changed files with 3 additions and 8 deletions
|
@ -1,8 +0,0 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# 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|
|
||||
value.to_s.gsub!(/pw>.+<\//, 'pw>[FILTERED]</') if key =~ /^(frame|raw_frame)$/i
|
||||
end
|
3
config/initializers/log.rb
Normal file
3
config/initializers/log.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
Rails.application.configure do
|
||||
config.filter_parameters += [:password, :nokogiri_frame, :parsed_frame]
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue