Add some debug printing

This commit is contained in:
King_DuckZ 2020-08-16 16:29:43 +01:00
parent 1fcd7bd749
commit d5ee1cd11b

View file

@ -142,6 +142,11 @@ namespace {
const std::string& client_name, const std::string& client_name,
const std::string& client_purpose const std::string& client_purpose
) { ) {
#if !defined(NDEBUG)
std::cout << "call_rest_api(\"" << url << "\", \"" << api_key << "\", \""
<< client_name << "\", \"" << client_purpose << "\")\n";
#endif
return rest_client.template ProcessWithPromiseT< std::pair<Header, T> >([&](rc::Context& ctx) { return rest_client.template ProcessWithPromiseT< std::pair<Header, T> >([&](rc::Context& ctx) {
std::unique_ptr<rc::Reply> reply = rc::RequestBuilder(ctx) std::unique_ptr<rc::Reply> reply = rc::RequestBuilder(ctx)
.Get(url) .Get(url)