]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Add some debug logs to RRDP
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Thu, 5 Oct 2023 00:18:34 +0000 (18:18 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Thu, 5 Oct 2023 00:18:34 +0000 (18:18 -0600)
src/http/http.c
src/rrdp/rrdp_parser.c

index c838e5e1f6adfb38b00ee46150a5f462b69dad71..131c48b834263d83627d08ac580f4cceeb874fdc 100644 (file)
@@ -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;
index 079974447e1285d8a6fc234b7540d708cc0cc9b4..e813359ec51a4deddd26d9f20e2b5300c1e87cbd 100644 (file)
@@ -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);