lib/vmdb/loggers.rb
# To be used as Excon's request logger, the logger must respond to
#   #instrument as in ActiveSupport::Notifications.
#   Implementation derived from Excon::StandardInstrumentor
To be used as Excon's request logger, the logger must respond to
instrument as in ActiveSupport::Notifications.
Implementation derived from Excon::StandardInstrumentor
To be used as Excon ' s request logger the logger must respond to instrument as in ActiveSupport :: Notifications . Implementation derived from Excon :: StandardInstrumentor
def message_for_excon_request(params)
        uri_parts    = params.values_at(:scheme, nil, :host, :port, nil, :path, nil, nil, nil)
        uri_parts[3] = uri_parts[3].to_i if uri_parts[3] 
        uri          = {:uri => URI::Generic.build(uri_parts).to_s}
        log_params(uri.merge!(params.slice(:query, :method, :headers, :body).delete_nils))
      end
def message_for_excon_request ( params ) uri_parts = params . values_at ( :scheme , nil , :host , :port , nil , :path , nil , nil , nil ) uri_parts [ 3 ] = uri_parts [ 3 ] . to_i if uri_parts [ 3 ] uri = { :uri => URI :: Generic . build ( uri_parts ) . to_s } log_params ( uri . merge! ( params . slice ( :query , :method , :headers , :body ) . delete_nils ) ) end
To be used as Excon's request logger, the logger must respond to
instrument as in ActiveSupport::Notifications.
To be used as Excon ' s request logger the logger must respond to instrument as in ActiveSupport :: Notifications .
# port
params