config/initializers/sidekiq.rb in eivo-rails-sidekiq-0.1.4 vs config/initializers/sidekiq.rb in eivo-rails-sidekiq-0.1.5
- old
+ new
@@ -18,10 +18,10 @@
if Rails.env.staging? || Rails.env.production?
config.log_formatter = ::EIVO::Formatter.new
config.error_handlers << proc do |error, context|
Sidekiq.logger.error({
- error: ["#{e.class.name}: #{e.message}", e.backtrace&.join("\n")].join("\n"),
+ error: ["#{error.class.name}: #{error.message}", error.backtrace&.join("\n")].join("\n"),
context: context
})
end
end
end