mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 10:06:53 +08:00
a30c7a77e8
Closes SCI-1107.
8 lines
229 B
Ruby
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
|