From: Alberto Leiva Popper Date: Thu, 5 Oct 2023 00:18:34 +0000 (-0600) Subject: Add some debug logs to RRDP X-Git-Tag: 1.6.0~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=236c708d662a950fc273517d1407c925d805eda4;p=thirdparty%2FFORT-validator.git Add some debug logs to RRDP --- diff --git a/src/http/http.c b/src/http/http.c index c838e5e1..131c48b8 100644 --- a/src/http/http.c +++ b/src/http/http.c @@ -279,7 +279,7 @@ http_fetch(char const *src, char const *dst, curl_off_t ims, bool *changed) args.file = NULL; setopt_writedata(handler.curl, &args); - pr_val_info("HTTP GET: %s", src); + pr_val_info("HTTP GET: %s -> %s", src, dst); res = curl_easy_perform(handler.curl); /* write_callback() */ if (args.file != NULL) file_close(args.file); @@ -471,6 +471,7 @@ http_direct_download(char const *remote, char const *dest) goto end; /* Overwrite the original file */ + pr_val_debug("Moving %s to %s.", tmp_file, dest); error = rename(tmp_file, dest); if (error) { error = errno; diff --git a/src/rrdp/rrdp_parser.c b/src/rrdp/rrdp_parser.c index 07997444..e813359e 100644 --- a/src/rrdp/rrdp_parser.c +++ b/src/rrdp/rrdp_parser.c @@ -487,6 +487,8 @@ write_from_uri(char const *location, unsigned char *content, size_t content_len) if (error) return error; + /* pr_val_debug("Expanding %s.", uri_get_local(uri)); */ + error = create_dir_recursive(uri_get_local(uri)); if (error) { uri_refput(uri);