Skip to content

Commit

Permalink
Correctly set logger for Sidekiq
Browse files Browse the repository at this point in the history
  • Loading branch information
y-yagi committed Jan 14, 2024
1 parent 8c714a7 commit 8487679
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/support/sidekiq/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
require 'sidekiq/cli'
require_relative 'workers/not_an_active_job_worker'

Sidekiq.logger = Logger.new(nil)
Sidekiq.configure_server do |config|
config.logger = Logger.new(nil)
end

def execute_with_launcher
sidekiq = Sidekiq::Launcher.new({queues: [FailJob.queue_name.call],
Expand Down

0 comments on commit 8487679

Please sign in to comment.