MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / _log_request

Method _log_request

googleapiclient/model.py:116–130  ·  view source on GitHub ↗

Logs debugging information about the request if requested.

(self, headers, path_params, query, body)

Source from the content-addressed store, hash-verified

114 alt_param = None
115
116 def _log_request(self, headers, path_params, query, body):
117 """Logs debugging information about the request if requested."""
118 if dump_request_response:
119 LOGGER.info("--request-start--")
120 LOGGER.info("-headers-start-")
121 for h, v in headers.items():
122 LOGGER.info("%s: %s", h, v)
123 LOGGER.info("-headers-end-")
124 LOGGER.info("-path-parameters-start-")
125 for h, v in path_params.items():
126 LOGGER.info("%s: %s", h, v)
127 LOGGER.info("-path-parameters-end-")
128 LOGGER.info("body: %s", body)
129 LOGGER.info("query: %s", query)
130 LOGGER.info("--request-end--")
131
132 def request(self, headers, path_params, query_params, body_value, api_version=None):
133 """Updates outgoing requests with a serialized body.

Callers 1

requestMethod · 0.95

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected