aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-06-16 13:04:55 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-06-16 13:04:55 +0200
commitd249a816740fe327eddba0021a6538dc25447417 (patch)
tree55025e77e6961a9a33e0543b281a1b31ade68717
parent69c60740c42c9a5f4666e1dfc5da0c4e4a4756c7 (diff)
downloadpacredir-d249a816740fe327eddba0021a6538dc25447417.tar.gz
pacredir-d249a816740fe327eddba0021a6538dc25447417.tar.zst
add debug output for file not found
-rw-r--r--pacredir.c4
1 files changed, 4 insertions, 0 deletions
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 */