1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-10 21:24:20 +01:00
fab-manager/config/initializers/silencer.rb

13 lines
337 B
Ruby

require 'silencer/rails/logger'
silenced_actions = []
silenced_actions << "/api/notifications/polling" unless Rails.application.secrets.enable_notifications_polling_logging
Rails.application.configure do
config.middleware.swap(
Rails::Rack::Logger,
Silencer::Logger,
config.log_tags,
silence: silenced_actions
)
end