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