Skip to content

Instantly share code, notes, and snippets.

View hypothetical's full-sized avatar

Vicki Ball hypothetical

View GitHub Profile
@hypothetical
hypothetical / delayed_job_exceptions.rb
Created November 18, 2009 08:03
GetExceptional monitoring on DelayedJob
module Delayed
class Job
def log_exception error
Exceptional::Catcher.handle error
logger.error "* [JOB] #{name} failed with #{error.class.name}: #{error.message} - #{attempts} failed attempts"
logger.error(error)
end
end
end