Class: Eventboss::ErrorHandlers::Logger
- Inherits:
-
Object
- Object
- Eventboss::ErrorHandlers::Logger
- Defined in:
- lib/eventboss/error_handlers/logger.rb
Instance Method Summary collapse
Instance Method Details
#call(exception, context = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/eventboss/error_handlers/logger.rb', line 4 def call(exception, context = {}) notice = {}.merge!(context) notice[:jid] = notice[:processor].jid if notice[:processor] notice[:processor] = notice[:processor].class.to_s if notice[:processor] Eventboss.logger.error(notice) do "Failure processing request: #{exception.}" end end |