instance method log_error

Ruby on Rails 3.1.12

Since v3.0.20 Last seen in v3.1.12 Private

Available in: v3.0.20 v3.1.12

Signature

log_error(exception)

No documentation comment.

Parameters

exception req
Source
# File actionpack/lib/action_dispatch/middleware/show_exceptions.rb, line 126
      def log_error(exception)
        return unless logger

        ActiveSupport::Deprecation.silence do
          message = "\n#{exception.class} (#{exception.message}):\n"
          message << exception.annoted_source_code.to_s if exception.respond_to?(:annoted_source_code)
          message << "  " << application_trace(exception).join("\n  ")
          logger.fatal("#{message}\n\n")
        end
      end

Defined in actionpack/lib/action_dispatch/middleware/show_exceptions.rb line 126 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::ShowExceptions

Type at least 2 characters to search.

↑↓ navigate · open · esc close