Class: Roundhouse::ExceptionHandler::Logger
- Inherits:
-
Object
- Object
- Roundhouse::ExceptionHandler::Logger
- Defined in:
- lib/roundhouse/exception_handler.rb
Instance Method Summary collapse
Instance Method Details
#call(ex, ctxHash) ⇒ Object
7 8 9 10 11 |
# File 'lib/roundhouse/exception_handler.rb', line 7 def call(ex, ctxHash) Roundhouse.logger.warn(ctxHash) if !ctxHash.empty? Roundhouse.logger.warn "#{ex.class.name}: #{ex.}" Roundhouse.logger.warn ex.backtrace.join("\n") unless ex.backtrace.nil? end |