instance method
call_app
Ruby on Rails 7.0.10
Since v3.2.22.5 PrivateSignature
call_app(request, env)
No documentation comment.
Parameters
-
requestreq -
envreq
Source
# File railties/lib/rails/rack/logger.rb, line 32
def call_app(request, env) # :doc:
instrumenter = ActiveSupport::Notifications.instrumenter
instrumenter_state = instrumenter.start "request.action_dispatch", request: request
instrumenter_finish = -> () {
instrumenter.finish_with_state(instrumenter_state, "request.action_dispatch", request: request)
}
logger.info { started_request_message(request) }
status, headers, body = @app.call(env)
body = ::Rack::BodyProxy.new(body, &instrumenter_finish)
[status, headers, body]
rescue Exception
instrumenter_finish.call
raise
ensure
ActiveSupport::LogSubscriber.flush_all!
end
Defined in railties/lib/rails/rack/logger.rb line 32
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Rack::Logger