From d249a816740fe327eddba0021a6538dc25447417 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 16 Jun 2014 13:04:55 +0200 Subject: add debug output for file not found --- pacredir.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pacredir.c b/pacredir.c index eb1b24e..25a562c 100644 --- a/pacredir.c +++ b/pacredir.c @@ -414,6 +414,10 @@ static int ahc_echo(void * cls, struct MHD_Connection * connection, const char * if (request->http_code == MHD_HTTP_OK) write_log(stdout, "Found: %s (%f sec, modified: %s)\n", request->url, request->time_total, ctime); +# if defined DEBUG + else + write_log(stderr, "Returned error %d for %s\n", request->http_code, request->url); +# endif if (request->http_code == MHD_HTTP_OK && /* for db files choose the most recent server */ -- cgit v1.2.3-54-g00ecf