Skip to content

Commit

Permalink
Use broadcast_to, fixes #6070
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Oct 10, 2023
1 parent 861f03f commit fd24e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def inspect
if ::Rails::VERSION::STRING < "7.1"
::Rails.logger.extend(::ActiveSupport::Logger.broadcast(config.logger))
else
::Rails.logger = ::ActiveSupport::BroadcastLogger.new(::Rails.logger, config.logger)
::Rails.logger.broadcast_to(config.logger)
end
end
end
Expand Down

0 comments on commit fd24e09

Please sign in to comment.