Sha256: 4f65f206b63170b73bb4834d617c20e2ce6bac6af459182285b5105821aef486
Contents?: true
Size: 429 Bytes
Versions: 23
Compression:
Stored size: 429 Bytes
Contents
# frozen_string_literal: true module Excon class StandardInstrumentor def self.instrument(name, params = {}, &block) 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 end end
Version data entries
23 entries across 23 versions & 3 rubygems