1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

standard styling

This commit is contained in:
Mike Perham 2021-10-12 13:33:14 -07:00
parent 90535ab104
commit 06d43cb49f

View file

@ -42,7 +42,7 @@ module Sidekiq
# This is the integration code necessary so that if code uses `Rails.logger.info "Hello"`,
# it will appear in the Sidekiq console with all of the job context. See #5021 and
# https://github.com/rails/rails/blob/b5f2b550f69a99336482739000c58e4e04e033aa/railties/lib/rails/commands/server/server_command.rb#L82-L84
unless ::ActiveSupport::Logger.logger_outputs_to?(::Rails.logger, STDOUT)
unless ::ActiveSupport::Logger.logger_outputs_to?(::Rails.logger, $stdout)
::Rails.logger.extend(::ActiveSupport::Logger.broadcast(::Sidekiq.logger))
end
end