mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
DEV: Remove autoloading in initializers depreciation message.
This commit is contained in:
parent
7a98efe72e
commit
c697efc186
@ -19,13 +19,15 @@ if Rails.env.development? && RUBY_VERSION.match?(/^2\.5\.[23]/)
|
||||
end
|
||||
|
||||
if Rails.env.development? && !Sidekiq.server? && ENV["RAILS_LOGS_STDOUT"] == "1"
|
||||
console = ActiveSupport::Logger.new(STDOUT)
|
||||
original_logger = Rails.logger.chained.first
|
||||
console.formatter = original_logger.formatter
|
||||
console.level = original_logger.level
|
||||
Rails.application.config.after_initialize do
|
||||
console = ActiveSupport::Logger.new(STDOUT)
|
||||
original_logger = Rails.logger.chained.first
|
||||
console.formatter = original_logger.formatter
|
||||
console.level = original_logger.level
|
||||
|
||||
unless ActiveSupport::Logger.logger_outputs_to?(original_logger, STDOUT)
|
||||
original_logger.extend(ActiveSupport::Logger.broadcast(console))
|
||||
unless ActiveSupport::Logger.logger_outputs_to?(original_logger, STDOUT)
|
||||
original_logger.extend(ActiveSupport::Logger.broadcast(console))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user