diff options
author | Christian Hesse <mail@eworm.de> | 2016-10-10 09:47:29 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2016-10-10 09:47:29 +0200 |
commit | 27f2e9534ceda3696de70d20a25e7bc8623fbd1c (patch) | |
tree | baa1a46011d9b1aeda97b0bce2f4d392238b3aac /pacredir.c | |
parent | b9b6f4484dd64da2818dd773e826bac5582d818e (diff) | |
download | paccache-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.
Diffstat (limited to 'pacredir.c')
-rw-r--r-- | pacredir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 && |