config/initializers/sidekiq.rb in eivo-rails-sidekiq-0.1.2 vs config/initializers/sidekiq.rb in eivo-rails-sidekiq-0.1.3
- 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.to_s.join("\n")].join("\n"),
+ error: ["#{e.class.name}: #{e.message}", e.backtrace&.join("\n")].join("\n"),
context: context
}
end
end
end