From 27f2e9534ceda3696de70d20a25e7bc8623fbd1c Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 10 Oct 2016 09:47:29 +0200 Subject: verbose output: do not print useless message There is no HTTP status code 0, so this is what we set earlier. --- pacredir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 && -- cgit v1.2.3-70-g09d2