Cleanup log initializer

#314
This commit is contained in:
Artur Beljajev 2017-02-28 16:30:28 +02:00
parent 6e46c0a8e0
commit 416f3810d2
2 changed files with 3 additions and 8 deletions

View file

@ -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

View file

@ -0,0 +1,3 @@
Rails.application.configure do
config.filter_parameters += [:password, :nokogiri_frame, :parsed_frame]
end