method
log_error
v3.1.0 -
Show latest stable
- Class:
ActionDispatch::ShowExceptions
log_error(exception)private
No documentation available.
# 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