/usr/lib/ruby/vendor_ruby/merb-core/rack/middleware/tracer.rb is in ruby-merb-core 1.1.3+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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
|