Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/651deffcf73f4760f32934dc2045e314998f5338
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/651deffcf73f4760f32934dc2045e314998f5338
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/651deffcf73f4760f32934dc2045e314998f5338

The branch, master has been updated
       via  651deffcf73f4760f32934dc2045e314998f5338 (commit)
      from  e754f31cb7aa4293ebe1a28fbca695d26def627c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=651deffcf73f4760f32934dc2045e314998f5338
commit 651deffcf73f4760f32934dc2045e314998f5338
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>

    (curl): Add extra logging to fetcher initialisation
    
    Signed-off-by: Daniel Silverstone <[email protected]>

diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c
index 5368983..a0c26ae 100644
--- a/content/fetchers/curl.c
+++ b/content/fetchers/curl.c
@@ -1713,8 +1713,10 @@ nserror fetch_curl_register(void)
 #undef SETOPT
 #define SETOPT(option, value) \
        mcode = curl_multi_setopt(fetch_curl_multi, option, value);     \
-       if (mcode != CURLM_OK)                                          \
-               goto curl_multi_setopt_failed;
+       if (mcode != CURLM_OK) {                                        \
+               NSLOG(netsurf, ERROR, "attempting curl_multi_setopt(%s, ...)", 
#option); \
+               goto curl_multi_setopt_failed;                          \
+       }
 
                SETOPT(CURLMOPT_MAXCONNECTS, maxconnects);
                SETOPT(CURLMOPT_MAX_TOTAL_CONNECTIONS, maxconnects);
@@ -1734,8 +1736,10 @@ nserror fetch_curl_register(void)
 #undef SETOPT
 #define SETOPT(option, value) \
        code = curl_easy_setopt(fetch_blank_curl, option, value);       \
-       if (code != CURLE_OK)                                           \
-               goto curl_easy_setopt_failed;
+       if (code != CURLE_OK) {                                         \
+               NSLOG(netsurf, ERROR, "attempting curl_easy_setopt(%s, ...)", 
#option); \
+               goto curl_easy_setopt_failed;                           \
+       }
 
        SETOPT(CURLOPT_ERRORBUFFER, fetch_error_buffer);
        SETOPT(CURLOPT_DEBUGFUNCTION, fetch_curl_debug);


-----------------------------------------------------------------------

Summary of changes:
 content/fetchers/curl.c |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c
index 5368983..a0c26ae 100644
--- a/content/fetchers/curl.c
+++ b/content/fetchers/curl.c
@@ -1713,8 +1713,10 @@ nserror fetch_curl_register(void)
 #undef SETOPT
 #define SETOPT(option, value) \
        mcode = curl_multi_setopt(fetch_curl_multi, option, value);     \
-       if (mcode != CURLM_OK)                                          \
-               goto curl_multi_setopt_failed;
+       if (mcode != CURLM_OK) {                                        \
+               NSLOG(netsurf, ERROR, "attempting curl_multi_setopt(%s, ...)", 
#option); \
+               goto curl_multi_setopt_failed;                          \
+       }
 
                SETOPT(CURLMOPT_MAXCONNECTS, maxconnects);
                SETOPT(CURLMOPT_MAX_TOTAL_CONNECTIONS, maxconnects);
@@ -1734,8 +1736,10 @@ nserror fetch_curl_register(void)
 #undef SETOPT
 #define SETOPT(option, value) \
        code = curl_easy_setopt(fetch_blank_curl, option, value);       \
-       if (code != CURLE_OK)                                           \
-               goto curl_easy_setopt_failed;
+       if (code != CURLE_OK) {                                         \
+               NSLOG(netsurf, ERROR, "attempting curl_easy_setopt(%s, ...)", 
#option); \
+               goto curl_easy_setopt_failed;                           \
+       }
 
        SETOPT(CURLOPT_ERRORBUFFER, fetch_error_buffer);
        SETOPT(CURLOPT_DEBUGFUNCTION, fetch_curl_debug);


-- 
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to