X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fhttp.c;h=dd9924975e3f3b29f24385d0dc31bdeb98ce6233;hb=1a7e1ac9638c4e17a483b3f20886711679774a91;hp=d6c79835d44ef750e9ee8e60be9930b5e579294b;hpb=b59ec44bffce28192c6408fed838c4d593a17c82;p=ppastats.git diff --git a/src/http.c b/src/http.c index d6c7983..dd99249 100644 --- a/src/http.c +++ b/src/http.c @@ -28,7 +28,7 @@ #include "fcache.h" #include "http.h" -#include "log.h" +#include static const int DEFAULT_FETCH_RETRIES = 10; @@ -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; } -