summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d9ffeaf)
raw | patch | inline | side by side (parent: d9ffeaf)
author | Florian Forster <octo@collectd.org> | |
Sun, 26 May 2013 15:28:13 +0000 (17:28 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 26 May 2013 15:28:13 +0000 (17:28 +0200) |
src/curl.c | patch | blob | history |
diff --git a/src/curl.c b/src/curl.c
index f580cf2470c7236755eec187dc520da7690fe76d..f927f810e874cae8aee8060f61422dfa12d225b4 100644 (file)
--- a/src/curl.c
+++ b/src/curl.c
long response_code = 0;
status = curl_easy_getinfo(wp->curl, CURLINFO_RESPONSE_CODE, &response_code);
if(status != CURLE_OK) {
- ERROR ("curl plugin: curl_easy_getinfo failed with staus %i: %s",
+ ERROR ("curl plugin: Fetching response code failed with staus %i: %s",
status, wp->curl_errbuf);
- return (-1); // TODO: do we need to return in here? this is nonfatal error
+ } else {
+ cc_submit_response_code(wp, response_code);
}
- cc_submit_response_code(wp, response_code);
}
if (wp->response_time)