Skip to content

Commit

Permalink
Set Sidekiq log level to warning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thomasleese committed Jul 3, 2024
1 parent 076de2d commit a8b0889
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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: } }

0 comments on commit a8b0889

Please sign in to comment.