Sha256: 8020deb429115f986277f463ba95ab1c08e91f12abddd3900b6d3b98c151aa1b
Contents?: true
Size: 467 Bytes
Versions: 25
Compression:
Stored size: 467 Bytes
Contents
module Merb module Rack class Tracer < Merb::Rack::Middleware # :api: plugin def call(env) Merb.logger.debug!("Rack environment:\n" + env.inspect + "\n\n") status, headers, body = @app.call(env) Merb.logger.debug!("Status: #{status.inspect}") Merb.logger.debug!("Headers: #{headers.inspect}") Merb.logger.debug!("Body: #{body.inspect}") [status, headers, body] end end end end
Version data entries
25 entries across 25 versions & 1 rubygems