FIX: Disable `rails_multisite` formatter if lograge is enabled.

This commit is contained in:
Guo Xiang Tan 2017-11-15 09:02:34 +08:00
parent 813e21d0e8
commit 0d8e9a88c9
1 changed files with 4 additions and 0 deletions

View File

@ -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