Sha256: 4cfd901e79f0696417856352c0f5a4d2abfd8f07e9f6e078d76f533f9ef902ca

Contents?: true

Size: 333 Bytes

Versions: 10

Compression:

Stored size: 333 Bytes

Contents

# Log actual exceptions, not a string representation
require "action_view/renderer/streaming_template_renderer"

module ActionView
  class StreamingTemplateRenderer
    class Body
      private

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rails_semantic_logger-4.17.0 lib/rails_semantic_logger/extensions/action_view/streaming_template_renderer.rb
rails_semantic_logger-4.16.0 lib/rails_semantic_logger/extensions/action_view/streaming_template_renderer.rb
rails_semantic_logger-4.15.0 lib/rails_semantic_logger/extensions/action_view/streaming_template_renderer.rb
rails_semantic_logger-4.14.0 lib/rails_semantic_logger/extensions/action_view/streaming_template_renderer.rb
rails_semantic_logger-4.13.0 lib/rails_semantic_logger/extensions/action_view/streaming_template_renderer.rb
rails_semantic_logger-4.12.0 lib/rails_semantic_logger/extensions/action_view/streaming_template_renderer.rb
rails_semantic_logger-4.11.0 lib/rails_semantic_logger/extensions/action_view/streaming_template_renderer.rb
rails_semantic_logger-4.10.0 lib/rails_semantic_logger/extensions/action_view/streaming_template_renderer.rb
rails_semantic_logger-4.9.0 lib/rails_semantic_logger/extensions/action_view/streaming_template_renderer.rb
rails_semantic_logger-4.6.2 lib/rails_semantic_logger/extensions/action_view/streaming_template_renderer.rb