config/initializers/sidekiq.rb in eivo-rails-sidekiq-0.1.3 vs config/initializers/sidekiq.rb in eivo-rails-sidekiq-0.1.4

- old
+ new

@@ -17,13 +17,13 @@ if Rails.env.staging? || Rails.env.production? config.log_formatter = ::EIVO::Formatter.new config.error_handlers << proc do |error, context| - Sidekiq.logger.error { + Sidekiq.logger.error({ error: ["#{e.class.name}: #{e.message}", e.backtrace&.join("\n")].join("\n"), context: context - } + }) end end end ActiveJob::Base.queue_adapter = :sidekiq if defined?(ActiveJob)