remove user warnings from hotlist load and curl poll

This commit is contained in:
Vincent Sanders 2019-11-05 00:07:06 +00:00
parent 7c63f5f66b
commit 78aa34e5d7
2 changed files with 14 additions and 7 deletions

View File

@ -1325,9 +1325,9 @@ static void fetch_curl_poll(lwc_string *scheme_ignored)
do { do {
codem = curl_multi_perform(fetch_curl_multi, &running); codem = curl_multi_perform(fetch_curl_multi, &running);
if (codem != CURLM_OK && codem != CURLM_CALL_MULTI_PERFORM) { if (codem != CURLM_OK && codem != CURLM_CALL_MULTI_PERFORM) {
NSLOG(netsurf, WARNING, "curl_multi_perform: %i %s", NSLOG(netsurf, WARNING,
"curl_multi_perform: %i %s",
codem, curl_multi_strerror(codem)); codem, curl_multi_strerror(codem));
guit->misc->warning("MiscError", curl_multi_strerror(codem));
return; return;
} }
} while (codem == CURLM_CALL_MULTI_PERFORM); } while (codem == CURLM_CALL_MULTI_PERFORM);

View File

@ -890,7 +890,9 @@ static nserror hotlist_load(const char *path, bool *loaded)
corestring_lwc_html); corestring_lwc_html);
if (html == NULL) { if (html == NULL) {
dom_node_unref(document); dom_node_unref(document);
guit->misc->warning("TreeLoadError", "(<html> not found)"); NSLOG(netsurf, WARNING,
"%s (<html> not found)",
messages_get("TreeLoadError"));
return NSERROR_OK; return NSERROR_OK;
} }
@ -899,7 +901,9 @@ static nserror hotlist_load(const char *path, bool *loaded)
if (body == NULL) { if (body == NULL) {
dom_node_unref(html); dom_node_unref(html);
dom_node_unref(document); dom_node_unref(document);
guit->misc->warning("TreeLoadError", "(<html>...<body> not found)"); NSLOG(netsurf, WARNING,
"%s (<html>...<body> not found)",
messages_get("TreeLoadError"));
return NSERROR_OK; return NSERROR_OK;
} }
@ -909,8 +913,9 @@ static nserror hotlist_load(const char *path, bool *loaded)
dom_node_unref(body); dom_node_unref(body);
dom_node_unref(html); dom_node_unref(html);
dom_node_unref(document); dom_node_unref(document);
guit->misc->warning("TreeLoadError", NSLOG(netsurf, WARNING,
"(<html>...<body>...<ul> not found.)"); "%s (<html>...<body>...<ul> not found.)",
messages_get("TreeLoadError"));
return NSERROR_OK; return NSERROR_OK;
} }
@ -934,7 +939,9 @@ static nserror hotlist_load(const char *path, bool *loaded)
dom_node_unref(document); dom_node_unref(document);
if (err != NSERROR_OK) { if (err != NSERROR_OK) {
guit->misc->warning("TreeLoadError", "(Failed building tree.)"); NSLOG(netsurf, WARNING,
"%s (Failed building tree.)",
messages_get("TreeLoadError"));
return NSERROR_OK; return NSERROR_OK;
} }