Logs debugging information about the request if requested.
(self, headers, path_params, query, body)
| 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. |