]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/filter_parameter_logging.rb
Merge pull request #4278 from tomhughes/rails71
[rails.git] / config / initializers / filter_parameter_logging.rb
index 8eb234f431a0e1e6ac5fd953f3f31159bdd89674..460804ff058b59c7217d31c14ecbaae5038053c8 100644 (file)
@@ -1,4 +1,8 @@
 # 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, :pass_crypt, :pass_crypt_confirmation]
+# Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file.
+# Use this to limit dissemination of sensitive information.
+# See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors.
+Rails.application.config.filter_parameters += [
+  :password, :pass_crypt, :pass_crypt_confirmation
+]