scinote-web/config/initializers/silencer.rb
Luka Murn a30c7a77e8 Silence Wicked PDF generation
Closes SCI-1107.
2017-04-10 14:00:31 +02:00

8 lines
229 B
Ruby

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