instance method
log_error
Ruby on Rails 4.2.9
Since v4.0.13Signature
log_error(exception)
No documentation comment.
Parameters
-
exceptionreq
Source
# File actionpack/lib/action_controller/metal/live.rb, line 302
def log_error(exception)
logger = ActionController::Base.logger
return unless logger
logger.fatal do
message = "\n#{exception.class} (#{exception.message}):\n"
message << exception.annoted_source_code.to_s if exception.respond_to?(:annoted_source_code)
message << " " << exception.backtrace.join("\n ")
"#{message}\n\n"
end
end
Defined in actionpack/lib/action_controller/metal/live.rb line 302
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Live