mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +08:00
Logster::Logger#chained
is now readable in new version of logster.
This commit is contained in:
@ -100,6 +100,6 @@ RailsMultisite::ConnectionManagement.each_connection do
|
||||
end
|
||||
|
||||
if Rails.configuration.multisite
|
||||
chained = Rails.logger.instance_variable_get(:@chained)
|
||||
chained = Rails.logger.chained
|
||||
chained && chained.first.formatter = RailsMultisite::Formatter.new
|
||||
end
|
||||
|
@ -106,7 +106,7 @@ if (Rails.env.production? && SiteSetting.logging_provider == 'lograge') || ENV["
|
||||
|
||||
# Remove ActiveSupport::Logger from the chain and replace with Lograge's
|
||||
# logger
|
||||
Rails.logger.instance_variable_get(:@chained).pop
|
||||
Rails.logger.chained.pop
|
||||
Rails.logger.chain(config.lograge.logger)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user