feat: Control sidekiq log level via rails LOG_LEVEL env variable (#4675)
This commit is contained in:
parent
ab3ee74a86
commit
8fbe470bdd
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@ end
|
||||||
|
|
||||||
Sidekiq.configure_server do |config|
|
Sidekiq.configure_server do |config|
|
||||||
config.redis = Redis::Config.app
|
config.redis = Redis::Config.app
|
||||||
|
config.logger.level = Logger.const_get(ENV.fetch('LOG_LEVEL', 'info').upcase.to_s)
|
||||||
end
|
end
|
||||||
|
|
||||||
# https://github.com/ondrejbartas/sidekiq-cron
|
# https://github.com/ondrejbartas/sidekiq-cron
|
||||||
|
|
Loading…
Reference in a new issue