From d5ee1cd11badbf836808ff97c98aa34a354c3960 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Sun, 16 Aug 2020 16:29:43 +0100 Subject: [PATCH] Add some debug printing --- src/oro/api.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/oro/api.cpp b/src/oro/api.cpp index 56b54d4..e27117a 100644 --- a/src/oro/api.cpp +++ b/src/oro/api.cpp @@ -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 >([&](rc::Context& ctx) { std::unique_ptr reply = rc::RequestBuilder(ctx) .Get(url)