lib/bbk/app/dispatcher.rb in bbk-app-1.0.0.79241 vs lib/bbk/app/dispatcher.rb in bbk-app-1.0.0.79514
- old
+ new
@@ -138,10 +138,10 @@
is_unknown = @observer.instance_variable_get('@default') == processor
ActiveSupport::Notifications.instrument 'dispatcher.request.process', msg: message, match: matched, unknown: is_unknown do
processor.call(message, results: results)
end
rescue StandardError => e
- logger.error "Failed processing message in processor: #{e.inspect}"
+ logger.error "Failed processing message in processor: #{e.inspect}. Backrace: #{e.backtrace[0..10]}"
if processor.respond_to?(:on_error)
results = processor.on_error(message, e)
else
raise
end