Commit f961e2ba authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

RAPI client: Log request to be made

Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent d32f3b81
...@@ -400,12 +400,19 @@ class GanetiRapiClient(object): ...@@ -400,12 +400,19 @@ class GanetiRapiClient(object):
encoded_content = None encoded_content = None
# Build URL # Build URL
url = [self._base_url, path] urlparts = [self._base_url, path]
if query: if query:
url.append("?") urlparts.append("?")
url.append(urllib.urlencode(self._EncodeQuery(query))) urlparts.append(urllib.urlencode(self._EncodeQuery(query)))
req = _RapiRequest(method, "".join(url), self._headers, encoded_content) url = "".join(urlparts)
self._logger.debug("Sending request %s %s to %s:%s"
" (headers=%r, content=%r)",
method, url, self._host, self._port, self._headers,
req = _RapiRequest(method, url, self._headers, encoded_content)
try: try:
resp = resp =
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment