From a8b0889b51eb1970e553398dd7477176229a641c Mon Sep 17 00:00:00 2001 From: Thomas Leese Date: Wed, 3 Jul 2024 12:55:59 +0100 Subject: [PATCH] Set Sidekiq log level to warning This sets the log level for Sidekiq to warning to avoid sending lots of unnecessary generic logging, when we can track these in other ways via the Sidekiq dashboard. Instead, we only need to send logs about errors or problems that might need attention. --- config/initializers/sidekiq.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index 38d28f2a9..b79e9f80b 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -2,6 +2,9 @@ url = ENV.fetch("REDIS_URL", "redis://localhost:6379/1") -Sidekiq.configure_server { |config| config.redis = { url: } } +Sidekiq.configure_server do |config| + config.redis = { url: } + config.logger.level = Logger::WARN +end Sidekiq.configure_client { |config| config.redis = { url: } }