method
process_action
v8.0.0 -
Show latest stable
- Class:
ActionController::LogSubscriber
process_action(event)public
No documentation available.
# File actionpack/lib/action_controller/log_subscriber.rb, line 26
def process_action(event)
info do
payload = event.payload
additions = ActionController::Base.log_process_action(payload)
status = payload[:status]
if status.nil? && (exception_class_name = payload[:exception]&.first)
status = ActionDispatch::ExceptionWrapper.status_code_for_exception(exception_class_name)
end
additions << "GC: #{event.gc_time.round(1)}ms"
message = +"Completed #{status} #{Rack::Utils::HTTP_STATUS_CODES[status]} in #{event.duration.round}ms" " (#{additions.join(" | ")})"
message << "\n\n" if defined?(Rails.env) && Rails.env.development?
message
end
end