Skip to content

Commit

Permalink
set Webpacker logger to tagged when rails TaggedLogging (#1311)
Browse files Browse the repository at this point in the history
Co-authored-by: James Gascoigne - Taylor <jgascoignetaylor@godaddy.com>
  • Loading branch information
flippakitten and jgascoignetaylor-godaddy committed Aug 8, 2020
1 parent 0450aba commit f20233a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/webpacker/railtie.rb
Expand Up @@ -29,9 +29,9 @@ class Webpacker::Engine < ::Rails::Engine
initializer "webpacker.logger" do
config.after_initialize do
if ::Rails.logger.respond_to?(:tagged)
Webpacker.logger = ::Rails.logger
else
Webpacker.logger = ActiveSupport::TaggedLogging.new(::Rails.logger)
else
Webpacker.logger = ::Rails.logger
end
end
end
Expand Down

0 comments on commit f20233a

Please sign in to comment.