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