config/initializers/sidekiq.rb in eivo-rails-sidekiq-0.1.0 vs config/initializers/sidekiq.rb in eivo-rails-sidekiq-0.1.1

- old
+ new

@@ -12,9 +12,12 @@ config.redis = redis_config.dup end Sidekiq.configure_server do |config| config.redis = redis_config.dup - config.log_formatter = Sidekiq::Logger::Formatters::JSON.new + + if Rails.env.staging? || Rails.env.production? + config.log_formatter = ::EIVO::Formatter.new + end end ActiveJob::Base.queue_adapter = :sidekiq if defined?(ActiveJob)