Merge pull request #547 from Ducz0r/lm-sci-1107

Silence Wicked PDF generation [SCI-1107]
This commit is contained in:
Luka Murn 2017-04-11 11:22:49 +02:00 committed by GitHub
commit 3d9323c8d7
2 changed files with 10 additions and 1 deletions

View file

@ -46,7 +46,8 @@ gem 'commit_param_routing' # Enables different submit actions in the same form t
gem 'kaminari'
gem "i18n-js", ">= 3.0.0.rc11" # Localization in javascript files
gem 'roo', '~> 2.1.0' # Spreadsheet parser
gem 'wicked_pdf'
gem 'wicked_pdf', '>= 1.1'
gem 'silencer' # Silence certain Rails logs
gem 'wkhtmltopdf-heroku'
gem 'remotipart', '~> 1.2' # Async file uploads
gem 'faker' # Generate fake data

View file

@ -0,0 +1,8 @@
require 'silencer/logger'
Rails.application.configure do
config.middleware.swap Rails::Rack::Logger, Silencer::Logger, silence: [
# Silence WickedPDF rendering in logs
%r{/projects/[0-9]*/reports/generate.pdf}
]
end