aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-23 14:45:08 -0700
committerfriendica <info@friendica.com>2014-03-23 14:45:08 -0700
commit7666aaea6a8613c11c685ca1863b772ceaaacc48 (patch)
tree76e2ac872c056c35f814f17e8c8d8eac1cbf935f
parentcaa284e786d22d8c1d985fe9c86128ab7e195769 (diff)
downloadvolse-hubzilla-7666aaea6a8613c11c685ca1863b772ceaaacc48.tar.gz
volse-hubzilla-7666aaea6a8613c11c685ca1863b772ceaaacc48.tar.bz2
volse-hubzilla-7666aaea6a8613c11c685ca1863b772ceaaacc48.zip
improve curl error logging
-rw-r--r--include/network.php4
-rw-r--r--version.inc2
2 files changed, 4 insertions, 2 deletions
diff --git a/include/network.php b/include/network.php
index 1fb4beaa7..27f912508 100644
--- a/include/network.php
+++ b/include/network.php
@@ -116,6 +116,7 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) {
$ret['success'] = (($rc >= 200 && $rc <= 299) ? true : false);
if(! $ret['success']) {
$ret['debug'] = $curl_info;
+ logger('z_fetch_url: error:' . curl_error($ch), LOGGER_DEBUG);
logger('z_fetch_url: debug:' . print_r($curl_info,true), LOGGER_DATA);
}
$ret['body'] = substr($s,strlen($header));
@@ -218,7 +219,8 @@ function z_post_url($url,$params, $redirects = 0, $opts = array()) {
$ret['success'] = (($rc >= 200 && $rc <= 299) ? true : false);
if(! $ret['success']) {
$ret['debug'] = $curl_info;
- logger('z_fetch_url: debug:' . print_r($curl_info,true), LOGGER_DATA);
+ logger('z_post_url: error:' . curl_error($ch), LOGGER_DEBUG);
+ logger('z_post_url: debug:' . print_r($curl_info,true), LOGGER_DATA);
}
$ret['body'] = substr($s,strlen($header));
diff --git a/version.inc b/version.inc
index 01e476a78..e3203e51d 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2014-03-21.623
+2014-03-23.625