From 06d43cb49f5d81740b8fc9ff2bd59d40e0a6586b Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Tue, 12 Oct 2021 13:33:14 -0700 Subject: [PATCH] standard styling --- lib/sidekiq/rails.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq/rails.rb b/lib/sidekiq/rails.rb index 33b7d490..a24699d5 100644 --- a/lib/sidekiq/rails.rb +++ b/lib/sidekiq/rails.rb @@ -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