module VagrantPlugins::Openstack::HttpUtils::RequestLogger

Public Instance Methods

log_request(method, url, body = nil, headers) click to toggle source
# File lib/vagrant-openstack-provider/client/request_logger.rb, line 8
def log_request(method, url, body = nil, headers)
  @logger.debug "request  => method  : #{method}"
  @logger.debug "request  => url     : #{url}"
  @logger.debug "request  => headers : #{headers}"
  @logger.debug "request  => body    : #{body}" unless body.nil?
end
log_response(response) click to toggle source
# File lib/vagrant-openstack-provider/client/request_logger.rb, line 15
def log_response(response)
  @logger.debug "response => code    : #{response.code}"
  @logger.debug "response => headers : #{response.headers}"
  @logger.debug "response => body    : #{response}"
end