Skip to content

Commit c603308

Browse files
elboulangeropoettering
authored andcommitted
casync-http: Log downloaded chunks with debug level (was info+verbose)
With this commit, one must set casync log level to debug in order to see each downloaded chunks. CASYNC_LOG_LEVEL=debug casync extract ... Signed-off-by: Arnaud Rebillout <[email protected]>
1 parent 96cab23 commit c603308

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/casync-http.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,7 @@ static int acquire_file(CaRemote *rr,
314314
return -EIO;
315315
}
316316

317-
if (arg_verbose)
318-
log_info("Acquiring %s...", url);
317+
log_debug("Acquiring %s...", url);
319318

320319
if (robust_curl_easy_perform(curl) != CURLE_OK) {
321320
log_error("Failed to acquire %s", url);
@@ -566,8 +565,7 @@ static int run(int argc, char *argv[]) {
566565
}
567566
}
568567

569-
if (arg_verbose)
570-
log_info("Acquiring %s...", url_buffer);
568+
log_debug("Acquiring %s...", url_buffer);
571569

572570
if (robust_curl_easy_perform(curl) != CURLE_OK) {
573571
log_error("Failed to acquire %s", url_buffer);

0 commit comments

Comments
 (0)