diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb index 055321c02d..703b72c9fc 100644 --- a/app/jobs/application_job.rb +++ b/app/jobs/application_job.rb @@ -59,6 +59,7 @@ def queue_job(priority = nil, delay = default_delay) end def report_exception(exception, message = nil, data = {}) + data.merge!({job_class: self.class.name}) message ||= "Error executing job for #{self.class.name}" Seek::Errors::ExceptionForwarder.send_notification(exception, data: data) Rails.logger.error(message)