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

Version Path
merb-core-1.1.3 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.1.2 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.1.1 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.1.0 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.1.0.rc1 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.1.0.pre lib/merb-core/rack/middleware/tracer.rb
merb-core-1.0.15 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.0.14 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.0.13 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.0.12 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.0.2 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.0.1 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.0.11 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.0.10 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.0.3 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.0.6.1 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.0.4 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.0.5 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.0.8.1 lib/merb-core/rack/middleware/tracer.rb
merb-core-1.0.7 lib/merb-core/rack/middleware/tracer.rb