feat: Control sidekiq log level via rails LOG_LEVEL env variable (#4675)

This commit is contained in:
Vishnu Narayanan 2022-05-13 11:34:43 +05:30 committed by GitHub
parent ab3ee74a86
commit 8fbe470bdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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