Skip to content

Commit

Permalink
Merge pull request #5900 from ministryofjustice/jsugarman/amend-sidek…
Browse files Browse the repository at this point in the history
…iq-logger-level-for-test

Prevent sidekiq info log output during test run
  • Loading branch information
jsugarman authored Oct 24, 2023
2 parents 6ad3b27 + 4fe685c commit dbab02b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module Dashboard; end

Sidekiq.configure_client do |config|
config.redis = { url: redis_url }
config.logger.level = Logger::WARN if Rails.env.test?

# accepts :expiration (optional)
Sidekiq::Status.configure_client_middleware config, expiration: 30.minutes.to_i
Expand Down

0 comments on commit dbab02b

Please sign in to comment.