add initializer to filter xml parameter from logging
This commit is contained in:
parent
491419c99a
commit
019b93d176
2 changed files with 4 additions and 2 deletions
2
config/initializers/filter_parameter_logging.rb
Normal file
2
config/initializers/filter_parameter_logging.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# Don't log received xml data.
|
||||
Rails.application.config.filter_parameters += [:xml]
|
||||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue