reevoo/sapience-rb

View on GitHub
lib/sapience/extensions/action_view/streaming_template_renderer.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true
# Log actual exceptions, not a string representation

class ActionView::StreamingTemplateRenderer # rubocop:disable ClassAndModuleChildren
  class Body
    private

    alias log_error_original log_error

    def log_error(exception) #:nodoc:
      ActionView::Base.logger.fatal(exception)
    end
  end
end