1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Merge pull request #59 from masterkain/master

Add support for ExceptionNotifier
This commit is contained in:
Mike Perham 2012-02-27 20:52:09 -08:00
commit 4bc36edbe6

View file

@ -12,6 +12,7 @@ module Sidekiq
logger.warn ex.backtrace.join("\n")
send_to_airbrake(args[1], ex) if defined?(::Airbrake)
send_to_exceptional(args[1], ex) if defined?(::Exceptional)
send_to_exception_notifier(args[1], ex) if defined?(::ExceptionNotifier)
raise
end
@ -27,6 +28,10 @@ module Sidekiq
::Exceptional::Remote.error(::Exceptional::ExceptionData.new(ex))
end
end
def send_to_exception_notifier(msg, ex)
::ExceptionNotifier::Notifier.background_exception_notification(ex, :data => { :message => msg })
end
end
end
end