lib/sidekiq/logging/shared.rb in sidekiq-logstash-1.2.1 vs lib/sidekiq/logging/shared.rb in sidekiq-logstash-2.0.0

- old
+ new

@@ -13,11 +13,11 @@ yield if block_given? Sidekiq.logger.info log_job_exec(job, started_at) rescue StandardError => e begin Sidekiq.logger.warn log_job_exception(job, started_at, e) - rescue StandardError => ex - log_standard_error(job, e, ex) + rescue StandardError => e + log_standard_error(job, e, e) end raise end def log_job_start(job)