lib/webpacker/railtie.rb in webpacker-3.0.0 vs lib/webpacker/railtie.rb in webpacker-3.0.1
- old
+ new
@@ -22,10 +22,14 @@
end
end
initializer "webpacker.logger" do
config.after_initialize do |app|
- Webpacker.logger = ::Rails.logger
+ if ::Rails.logger.respond_to?(:tagged)
+ Webpacker.logger = ::Rails.logger
+ else
+ Webpacker.logger = ActiveSupport::TaggedLogging.new(::Rails.logger)
+ end
end
end
initializer "webpacker.bootstrap" do
if defined?(Rails::Server) || defined?(Rails::Console)