add initializer to filter xml parameter from logging

This commit is contained in:
Benjamin Neff 2016-06-21 05:50:09 +02:00
parent 491419c99a
commit 019b93d176
2 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1,2 @@
# Don't log received xml data.
Rails.application.config.filter_parameters += [:xml]

View file

@ -14,8 +14,8 @@ Gem::Specification.new do |s|
s.description = "A rails engine that adds the diaspora* federation protocol to a rails app"
s.license = "AGPL 3.0 - http://www.gnu.org/licenses/agpl-3.0.html"
s.files = Dir["app/**/*", "config/routes.rb", "lib/diaspora_federation/{engine,rails}.rb",
"LICENSE", "README.md"]
s.files = Dir["app/**/*", "config/routes.rb", "config/initializers/*",
"lib/diaspora_federation/{engine,rails}.rb", "LICENSE", "README.md"]
s.required_ruby_version = "~> 2.1"