diff --git a/src/curl.c b/src/curl.c index 81beb5f7..9f206dfa 100644 --- a/src/curl.c +++ b/src/curl.c @@ -409,11 +409,13 @@ restart_download: goto exit; } + debug("CURL - start sync download: %s -> %s\n", url, in_memory_file ? "" : filename); curl_ret = curl_easy_perform(curl); if (curl_ret == CURLE_OK || curl_ret == CURLE_HTTP_RETURNED_ERROR) { curl_ret = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &ret); } + debug("CURL - completed sync download: curl ret %d, http response %d\n", curl_ret, ret); exit: if (!in_memory_file) { curl_ret = swupd_download_file_complete(curl_ret, &local); diff --git a/src/download.c b/src/download.c index 21224f06..3c867caf 100644 --- a/src/download.c +++ b/src/download.c @@ -258,6 +258,7 @@ static int perform_curl_io_and_complete(struct swupd_curl_parallel_handle *h, in } local_download = strncmp(url, "file://", 7) == 0; + debug("CURL - complete ASYNC download: %s -> %s\n", file->url, file->file.path); /* Get error code from easy handle and augment it if * completing the download encounters further problems. */ curl_ret = swupd_download_file_complete(msg->data.result, &file->file); @@ -458,6 +459,7 @@ static int process_download(struct swupd_curl_parallel_handle *h, struct multi_c goto out_bad; } + debug("CURL - start ASYNC download: %s -> %s\n", file->url, file->file.path); curlm_ret = curl_multi_add_handle(h->mcurl, curl); if (curlm_ret != CURLM_OK) { goto out_bad; diff --git a/src/swupd.h b/src/swupd.h index 359ec2c6..26c94a76 100644 --- a/src/swupd.h +++ b/src/swupd.h @@ -15,6 +15,7 @@ #include "lib/macros.h" #include "lib/strings.h" #include "lib/sys.h" +#include "lib/log.h" #include "swupd-error.h" #include "timelist.h"