FIX: Disable `rails_multisite` formatter if lograge is enabled.
This commit is contained in:
parent
813e21d0e8
commit
0d8e9a88c9
|
@ -1,6 +1,10 @@
|
|||
if (Rails.env.production? && SiteSetting.logging_provider == 'lograge') || ENV["ENABLE_LOGRAGE"]
|
||||
require 'lograge'
|
||||
|
||||
if Rails.configuration.multisite
|
||||
Rails.logger.formatter = ActiveSupport::Logger::SimpleFormatter.new
|
||||
end
|
||||
|
||||
Rails.application.configure do
|
||||
config.lograge.enabled = true
|
||||
|
||||
|
|
Loading…
Reference in New Issue