X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fhttp.c;h=99a6db3204ffad9fb2d054a0c3987dbe0717e6c3;hb=31fc078cb1ec387eea7d41413a98904150cc46ae;hp=4370f250d33c3b5b5e1c1bdee9e863d5e0fb347f;hpb=f534061fc8230481a3ca40abc1d1e9b79d3c4976;p=ppastats.git diff --git a/src/http.c b/src/http.c index 4370f25..99a6db3 100644 --- a/src/http.c +++ b/src/http.c @@ -30,7 +30,7 @@ #include "http.h" #include -static const int DEFAULT_FETCH_RETRIES = 10; +static const int DEFAULT_FETCH_RETRIES = 15; static CURL *curl; @@ -139,10 +139,12 @@ static char *fetch_url(const char *url) void http_cleanup() { - log_debug(_("cleanup CURL")); + log_fct_enter(); curl_easy_cleanup(curl); curl_global_cleanup(); + + log_fct_exit(); } char *get_url_content(const char *url, unsigned int use_cache) @@ -162,4 +164,3 @@ char *get_url_content(const char *url, unsigned int use_cache) return content; } -