From 8fbe470bdd9b65ceeb36a3f25b25f9fefd89ece6 Mon Sep 17 00:00:00 2001 From: Vishnu Narayanan Date: Fri, 13 May 2022 11:34:43 +0530 Subject: [PATCH] feat: Control sidekiq log level via rails LOG_LEVEL env variable (#4675) --- config/initializers/sidekiq.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index 3a183f0a9..66262ea43 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -8,6 +8,7 @@ end Sidekiq.configure_server do |config| config.redis = Redis::Config.app + config.logger.level = Logger.const_get(ENV.fetch('LOG_LEVEL', 'info').upcase.to_s) end # https://github.com/ondrejbartas/sidekiq-cron