class Excon::StandardInstrumentor

Public Class Methods

instrument(name, params = {}) { || ... } click to toggle source
# File lib/excon/instrumentors/standard_instrumentor.rb, line 4
def self.instrument(name, params = {})
  params = params.dup

  # reduce duplication/noise of output
  params.delete(:connection)
  params.delete(:stack)

  params = Utils.redact(params)

  $stderr.puts(name)
  Excon::PrettyPrinter.pp($stderr, params)

  if block_given?
    yield
  end
end