diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-19 17:31:22 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-19 17:31:22 +0800 |
commit | b339eebaefeb28ec6b9e4cac612b2f7777f21eb1 (patch) | |
tree | 79d59347da89b75f2d5e0ad3527cdd25b528e876 | |
parent | c1493914ab809c5fd851f23d6539a7d351bd32fc (diff) |
POST content gets logged for debugging
-rw-r--r-- | post.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -17,6 +17,14 @@ inline void post(const char *path, const char *pairs[], size_t n) sprintf(content, "%s%s: %s\n", content, pairs[i + 1] , pair); } +#ifdef DEBUG +#ifdef ANDROID + __android_log_print(ANDROID_LOG_DEBUG, "librtclient", "%s\nContent:\n%s" + , __func__, content); +#else + fprintf(stderr, "%s\nContent:\n%s", __func__, content); +#endif // ANDROID +#endif // DEBUG struct curl_httppost *post, *last = NULL; curl_formadd(&post, &last |