mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
Merge pull request #547 from Ducz0r/lm-sci-1107
Silence Wicked PDF generation [SCI-1107]
This commit is contained in:
commit
3d9323c8d7
2 changed files with 10 additions and 1 deletions
3
Gemfile
3
Gemfile
|
@ -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
|
||||
|
|
8
config/initializers/silencer.rb
Normal file
8
config/initializers/silencer.rb
Normal 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
|
Loading…
Reference in a new issue