lib/job_dispatch/worker/item.rb in job_dispatch-0.0.2 vs lib/job_dispatch/worker/item.rb in job_dispatch-0.1.0
- old
+ new
@@ -34,9 +34,10 @@
class: ex.class.to_s,
message: ex.to_s,
backtrace: ex.backtrace,
}
@status = :error
+ JobDispatch.logger.debug ex
ensure
Thread.current["JobDispatch::Worker.job_id"] = nil
JobDispatch.logger.info "Worker completed job #{job_id}: #{target}.#{method}, status: #{@status}"
end
end