class ActionController::LogSubscriber
def process_action(event)
Experimental RBS support (using type sampling data from the type_fusion
project).
def process_action: (ActiveSupport::Notifications::Event event) -> Integer
This signature was generated using 1 sample from 1 application.
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 << "Allocations: #{event.allocations}" message = +"Completed #{status} #{Rack::Utils::HTTP_STATUS_CODES[status]} in #{event.duration.round}ms" message << " (#{additions.join(" | ")})" message << "\n\n" if defined?(Rails.env) && Rails.env.development? message end end