Skip to content

Instantly share code, notes, and snippets.

@hypothetical
Created November 18, 2009 08:03
Show Gist options
  • Save hypothetical/237644 to your computer and use it in GitHub Desktop.
Save hypothetical/237644 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment