Created
November 18, 2009 08:03
-
-
Save hypothetical/237644 to your computer and use it in GitHub Desktop.
GetExceptional monitoring on DelayedJob
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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