diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-20 08:44:55 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-20 08:44:55 +0800 |
commit | 54d9e73d76270fe6e635a71db2dc1476d1be99ff (patch) | |
tree | 8471d8a72f9b63a470e3a4237bcb9e33657311a2 | |
parent | 5109427413291f43e77adaa897f726f0a0d723f7 (diff) |
More complete logging for not OK status
-rw-r--r-- | ticket.c | 9 | ||||
-rw-r--r-- | user.c | 9 |
2 files changed, 14 insertions, 4 deletions
@@ -80,8 +80,13 @@ static size_t search_callback(void *contents, size_t size, size_t nmemb free(*listptr); *listptr = NULL; #ifdef DEBUG - fprintf(stderr, "%s response status: %s\n", __func__, line); -#endif +#ifdef ANDROID + __android_log_print(ANDROID_LOG_INFO, "librtclient" + , "%s response status:\n%s", __func__, error); +#else + printf("%s response status:\n%s\n", __func__, line); +#endif // ANDROID +#endif // DEBUG } return realsize; @@ -167,8 +167,13 @@ static size_t show_callback(void *contents, size_t size, size_t nmemb free(*userptr); *userptr = NULL; #ifdef DEBUG - fprintf(stderr, "%s response status: %s\n", __func__, line); -#endif +#ifdef ANDROID + __android_log_print(ANDROID_LOG_INFO, "librtclient" + , "%s response status:\n%s", __func__, error); +#else + printf("%s response status:\n%s\n", __func__, line); +#endif // ANDROID +#endif // DEBUG } return realsize; |