demarches-normaliennes/app/jobs/application_job.rb
2018-10-26 10:10:20 +00:00

13 lines
321 B
Ruby

class ApplicationJob < ActiveJob::Base
before_perform do |job|
Rails.logger.info("#{job.class.name} started at #{Time.zone.now}")
end
after_perform do |job|
Rails.logger.info("#{job.class.name} ended at #{Time.zone.now}")
end
def error(job, exception)
Raven.capture_exception(exception)
end
end