Add some debug printing
This commit is contained in:
parent
1fcd7bd749
commit
d5ee1cd11b
1 changed files with 5 additions and 0 deletions
|
@ -142,6 +142,11 @@ namespace {
|
|||
const std::string& client_name,
|
||||
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) {
|
||||
std::unique_ptr<rc::Reply> reply = rc::RequestBuilder(ctx)
|
||||
.Get(url)
|
||||
|
|
Loading…
Add table
Reference in a new issue