From f14c35065b7d1d181c05f22b698fa14c78c1086b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 12 Nov 2013 19:02:12 +0100 Subject: print number of failed servers --- pacredir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2