Module: VagrantPlugins::Deltacloud::HttpUtils::RequestLogger
- Included in:
- VagrantPlugins::Deltacloud::HttpUtils
- Defined in:
- lib/vagrant-deltacloud-provider/client/request_logger.rb
Instance Method Summary collapse
Instance Method Details
#log_request(method, url, body = nil, headers) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/vagrant-deltacloud-provider/client/request_logger.rb', line 9 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) ⇒ Object
16 17 18 19 20 |
# File 'lib/vagrant-deltacloud-provider/client/request_logger.rb', line 16 def log_response(response) @logger.debug "response => code : #{response.code}" @logger.debug "response => headers : #{response.headers}" @logger.debug "response => body : #{response}" end |