summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 */