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 138
      def log_error(request, wrapper)
        logger = logger(request)
        return unless logger

        exception = wrapper.exception

        trace = wrapper.application_trace
        trace = wrapper.framework_trace if trace.empty?

        ActiveSupport::Deprecation.silence do
          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
      end
Register or log in to add new notes.