mirror of
https://github.com/discourse/discourse.git
synced 2026-08-14 06:55:03 -05:00
EXPERIMENTAL: Allow lograge to be selected as the logging library.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user