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
2 people authored and gauravtiwari committed Aug 16, 2020
1 parent 409009b commit 76c174b
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 76c174b

Please sign in to comment.