From de42f8880e49bc32825d13a4ba0c7ed6e4295b81 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 4 Jan 2014 21:15:52 +0000 Subject: Add a bunch of logging to try and help track down the issue with rawfile handling, sorry guys --- content/fetch.c | 4 +++- content/fetchers/curl.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'content') diff --git a/content/fetch.c b/content/fetch.c index ffc907891..5b9aba1b0 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -665,8 +665,10 @@ void fetch_multipart_data_destroy(struct fetch_multipart_data *list) next = list->next; free(list->name); free(list->value); - if (list->file) + if (list->file) { + LOG(("Freeing rawfile: %s", list->rawfile)); free(list->rawfile); + } free(list); } } diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c index 7578ad4cb..1fada9d0a 100644 --- a/content/fetchers/curl.c +++ b/content/fetchers/curl.c @@ -1299,6 +1299,7 @@ fetch_curl_post_convert(const struct fetch_multipart_data *control) code, control->name)); } else { char *mimetype = fetch_mimetype(control->value); + LOG(("XYZZY: Using rawfile of %s", control->rawfile)); code = curl_formadd(&post, &last, CURLFORM_COPYNAME, control->name, CURLFORM_FILE, control->rawfile, -- cgit v1.2.3