Module: Creeper::ExceptionHandler
- Included in:
- Util
- Defined in:
- lib/creeper/exception_handler.rb
Instance Method Summary collapse
Instance Method Details
#handle_exception(ex, msg) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/creeper/exception_handler.rb', line 4 def handle_exception(ex, msg) Creeper.logger.warn msg Creeper.logger.warn ex Creeper.logger.warn ex.backtrace.join("\n") send_to_airbrake(msg, ex) if defined?(::Airbrake) send_to_exceptional(msg, ex) if defined?(::Exceptional) send_to_exception_notifier(msg, ex) if defined?(::ExceptionNotifier) end |