Sha256: 4ab11d8f4e103bfa1d2b6d224f87c62c55763b4834bea7bd8bd5876f58e044f3
Contents?: true
Size: 418 Bytes
Versions: 6
Compression:
Stored size: 418 Bytes
Contents
module Excon class StandardInstrumentor def self.instrument(name, params = {}, &block) if params.has_key?(:headers) && params[:headers].has_key?('Authorization') params = params.dup params[:headers] = params[:headers].dup params[:headers]['Authorization'] = REDACTED end $stderr.puts("#{name} #{params}") if block_given? yield end end end end
Version data entries
6 entries across 6 versions & 1 rubygems