log_error(request, wrapper) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/middleware/debug_exceptions.rb, line 133
      def log_error(request, wrapper)
        logger = logger(request)

        return unless logger
        return if !log_rescued_responses?(request) && wrapper.rescue_response?

        exception = wrapper.exception
        trace = wrapper.exception_trace

        message = []
        message << "  "
        message << "#{exception.class} (#{exception.message}):"
        message.concat(exception.annotated_source_code) if exception.respond_to?(:annotated_source_code)
        message << "  "
        message.concat(trace)

        log_array(logger, message)
      end
Register or log in to add new notes.