Flowdock
method

log_error

Importance_0
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 134
      def log_error(request, wrapper)
        logger = logger(request)

        return unless logger

        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.