diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb index 30327efd50..f2acc88e66 100644 --- a/config/initializers/filter_parameter_logging.rb +++ b/config/initializers/filter_parameter_logging.rb @@ -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].+<\//, 'pw>[FILTERED]]+)>([^<])+<\/eis:legalDocument>/, + "[FILTERED]") + end + end end