From d304686ca39603016044bf8fe839c54007e6756e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 26 Feb 2024 15:47:40 +0100 Subject: [PATCH] import: downgrade HTTP error code log message levels Let's downgrade log levels a bit on HTTP error codes. After all we gracefully handle many of them, and we do generated an extra message for the ones which are fatal anyway, hence there's no point in emphasizing the HTTP erro message levels as we currently do. --- src/import/pull-job.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/import/pull-job.c b/src/import/pull-job.c index bed7e640305..a4feda40812 100644 --- a/src/import/pull-job.c +++ b/src/import/pull-job.c @@ -187,7 +187,7 @@ void pull_job_curl_on_finished(CurlGlue *g, CURL *curl, CURLcode result) { } } - r = log_error_errno( + r = log_notice_errno( status == 404 ? SYNTHETIC_ERRNO(ENOMEDIUM) : SYNTHETIC_ERRNO(EIO), /* Make the most common error recognizable */ "HTTP request to %s failed with code %li.", j->url, status); goto finish; -- 2.47.3