scinote-web/config/initializers/silencer.rb
2018-01-30 18:24:01 +01:00

13 lines
273 B
Ruby

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