X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fhttp.c;h=99a6db3204ffad9fb2d054a0c3987dbe0717e6c3;hb=31fc078cb1ec387eea7d41413a98904150cc46ae;hp=d6c79835d44ef750e9ee8e60be9930b5e579294b;hpb=b59ec44bffce28192c6408fed838c4d593a17c82;p=ppastats.git diff --git a/src/http.c b/src/http.c index d6c7983..99a6db3 100644 --- a/src/http.c +++ b/src/http.c @@ -28,9 +28,9 @@ #include "fcache.h" #include "http.h" -#include "log.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; } -