Class: Sidekiq::Middleware::Server::ExceptionHandler
- Inherits:
-
Object
- Object
- Sidekiq::Middleware::Server::ExceptionHandler
- Includes:
- Util
- Defined in:
- lib/sidekiq/middleware/server/exception_handler.rb
Constant Summary
Constants included from Util
Instance Method Summary collapse
Methods included from Util
#constantize, #logger, #process_id, #redis, #watchdog
Instance Method Details
#call(*args) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/sidekiq/middleware/server/exception_handler.rb', line 8 def call(*args) yield rescue => ex logger.warn ex 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 |