Skip to content

Commit

Permalink
pass the job class name to the exception notification error
Browse files Browse the repository at this point in the history
  • Loading branch information
stuzart committed May 2, 2024
1 parent e783b17 commit d8a43e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/jobs/application_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d8a43e5

Please sign in to comment.