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:
commit
4bc36edbe6
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue