mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
11 lines
349 B
Ruby
11 lines
349 B
Ruby
|
if (Rails.env.production? && SiteSetting.logging_provider == 'lograge') || ENV["ENABLE_LOGRAGE"]
|
||
|
Rails.application.configure do
|
||
|
config.lograge.enabled = true
|
||
|
|
||
|
config.lograge.custom_options = lambda do |event|
|
||
|
exceptions = %w(controller action format id)
|
||
|
{ params: event.payload[:params].except(*exceptions) }
|
||
|
end
|
||
|
end
|
||
|
end
|