-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #422 from internetee/registry-314
Registry 314
- Loading branch information
Showing
1 changed file
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# 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 | ||
Rails.application.configure do | ||
config.filter_parameters += [:password, /^frame$/, /^nokogiri_frame$/, /^parsed_frame$/] | ||
config.filter_parameters << lambda do |key, value| | ||
if key == 'raw_frame' | ||
value.to_s.gsub!(/pw>.+<\//, 'pw>[FILTERED]</') | ||
value.to_s.gsub!(/<eis:legalDocument([^>]+)>([^<])+<\/eis:legalDocument>/, | ||
"<eis:legalDocument>[FILTERED]</eis:legalDocument>") | ||
end | ||
end | ||
end |