summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-10-10 09:47:29 +0200
committerGravatar Christian Hesse <mail@eworm.de>2016-10-10 09:47:29 +0200
commit27f2e9534ceda3696de70d20a25e7bc8623fbd1c (patch)
treebaa1a46011d9b1aeda97b0bce2f4d392238b3aac
parentb9b6f4484dd64da2818dd773e826bac5582d818e (diff)
downloadpaccache-27f2e9534ceda3696de70d20a25e7bc8623fbd1c.tar.gz
paccache-27f2e9534ceda3696de70d20a25e7bc8623fbd1c.tar.zst
verbose output: do not print useless message
There is no HTTP status code 0, so this is what we set earlier.
-rw-r--r--pacredir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pacredir.c b/pacredir.c
index ddd3b56..2e049e8 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -417,7 +417,7 @@ static int ahc_echo(void * cls,
if (request->http_code == MHD_HTTP_OK)
write_log(stdout, "Found: %s (%f sec, modified: %s)\n", request->url, request->time_total, ctime);
- else if (verbose > 0)
+ else if (verbose > 0 && request->http_code > 0)
write_log(stderr, "Returned HTTP status code %d for %s\n", request->http_code, request->url);
if (request->http_code == MHD_HTTP_OK &&