instance method
process_action
Ruby on Rails 4.0.13
Since v3.0.20 Last seen in v8.0.4Signature
process_action(event)
No documentation comment.
Parameters
-
eventreq
Source
# File actionpack/lib/action_controller/log_subscriber.rb, line 18
def process_action(event)
return unless logger.info?
payload = event.payload
additions = ActionController::Base.log_process_action(payload)
status = payload[:status]
if status.nil? && payload[:exception].present?
exception_class_name = payload[:exception].first
status = ActionDispatch::ExceptionWrapper.status_code_for_exception(exception_class_name)
end
message = "Completed #{status} #{Rack::Utils::HTTP_STATUS_CODES[status]} in #{event.duration.round}ms"
message << " (#{additions.join(" | ")})" unless additions.blank?
info(message)
end
Defined in actionpack/lib/action_controller/log_subscriber.rb line 18
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::LogSubscriber