Add headers into sendRequest debug message
This commit is contained in:
parent
4d29ea5a47
commit
38c25b670d
|
@ -120,7 +120,7 @@ proc sendRequest*(endpoint: string, httpMethod: HttpMethod, headers: HttpHeaders
|
||||||
strPayload = ""
|
strPayload = ""
|
||||||
else:
|
else:
|
||||||
strPayload = $jsonBody
|
strPayload = $jsonBody
|
||||||
echo "Sending ", httpMethod, " request, URL: ", endpoint, ", body: ", strPayload
|
echo "Sending ", httpMethod, " request, URL: ", endpoint, ", headers: ", $headers, " body: ", strPayload
|
||||||
|
|
||||||
waitForRateLimits(objectID, bucketType)
|
waitForRateLimits(objectID, bucketType)
|
||||||
let response = client.request(endpoint, httpMethod, strPayload)
|
let response = client.request(endpoint, httpMethod, strPayload)
|
||||||
|
|
Reference in New Issue