diff options
author | Christian Hesse <mail@eworm.de> | 2014-06-16 13:04:55 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-06-16 13:04:55 +0200 |
commit | d249a816740fe327eddba0021a6538dc25447417 (patch) | |
tree | 55025e77e6961a9a33e0543b281a1b31ade68717 | |
parent | 69c60740c42c9a5f4666e1dfc5da0c4e4a4756c7 (diff) | |
download | paccache-d249a816740fe327eddba0021a6538dc25447417.tar.gz paccache-d249a816740fe327eddba0021a6538dc25447417.tar.zst |
add debug output for file not found
-rw-r--r-- | pacredir.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 */ |