mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
14 lines
300 B
Ruby
14 lines
300 B
Ruby
require 'silencer/rails/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},
|
|
'/api/health'
|
|
]
|
|
)
|
|
end
|