instance method
log_error
Ruby on Rails 4.0.13
Since v4.0.13Signature
log_error(exception)
No documentation comment.
Parameters
-
exceptionreq
Source
# File actionpack/lib/action_controller/metal/live.rb, line 151
def log_error(exception)
logger = ActionController::Base.logger
return unless logger
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 ")
logger.fatal("#{message}\n\n")
end
Defined in actionpack/lib/action_controller/metal/live.rb line 151
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Live