Skip to content

Commit

Permalink
feat: Control sidekiq log level via rails LOG_LEVEL env variable (cha…
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnu-narayanan authored May 13, 2022
1 parent ab3ee74 commit 8fbe470
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 @@ -8,6 +8,7 @@

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
Expand Down

0 comments on commit 8fbe470

Please sign in to comment.