summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-11-12 19:02:12 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-11-12 19:02:12 +0100
commitf14c35065b7d1d181c05f22b698fa14c78c1086b (patch)
tree42960f96262f3b2ef4a5e0385cf9cd079c8aee39
parent996f405aaaecd3fdbb19537115190cdfd21f598d (diff)
downloadpacredir-f14c35065b7d1d181c05f22b698fa14c78c1086b.tar.gz
pacredir-f14c35065b7d1d181c05f22b698fa14c78c1086b.tar.zst
print number of failed servers
-rw-r--r--pacredir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pacredir.c b/pacredir.c
index 549812a..d382a75 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -419,7 +419,7 @@ static int ahc_echo(void * cls, struct MHD_Connection * connection, const char *
ret = MHD_queue_response(connection, MHD_HTTP_TEMPORARY_REDIRECT, response);
free(url);
} else {
- write_log(stdout, "File %s not found, giving up.\n", basename);
+ write_log(stdout, "File %s not found on %d servers, giving up.\n", basename, req_count + 1);
page = malloc(strlen(PAGE404) + strlen(basename) + 1);
sprintf(page, PAGE404, basename + 1);
response = MHD_create_response_from_data(strlen(page), (void*) page, MHD_NO, MHD_NO);