aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-27 21:21:38 -0700
committerfriendica <info@friendica.com>2014-05-27 21:21:38 -0700
commitf6de9c09fb34ed9eba9210e08097e1aecfaa5dad (patch)
treed28e552e387b9fa0b98e2a529749188ed9b09160 /include/network.php
parenteb58ef883441ea917da11606ed850fbfbaa43a9a (diff)
downloadvolse-hubzilla-f6de9c09fb34ed9eba9210e08097e1aecfaa5dad.tar.gz
volse-hubzilla-f6de9c09fb34ed9eba9210e08097e1aecfaa5dad.tar.bz2
volse-hubzilla-f6de9c09fb34ed9eba9210e08097e1aecfaa5dad.zip
logging: include target url when reporting z_fetch_url and z_post_url errors.
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/network.php b/include/network.php
index 9f68328b7..03faf9957 100644
--- a/include/network.php
+++ b/include/network.php
@@ -121,8 +121,8 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) {
if(! $ret['success']) {
$ret['error'] = curl_error($ch);
$ret['debug'] = $curl_info;
- logger('z_fetch_url: error:' . $ret['error'], LOGGER_DEBUG);
- logger('z_fetch_url: debug:' . print_r($curl_info,true), LOGGER_DATA);
+ logger('z_fetch_url: error: ' . $url . ': ' . $ret['error'], LOGGER_DEBUG);
+ logger('z_fetch_url: debug: ' . print_r($curl_info,true), LOGGER_DATA);
}
$ret['body'] = substr($s,strlen($header));
$ret['header'] = $header;
@@ -229,8 +229,8 @@ function z_post_url($url,$params, $redirects = 0, $opts = array()) {
if(! $ret['success']) {
$ret['error'] = curl_error($ch);
$ret['debug'] = $curl_info;
- logger('z_post_url: error:' . $ret['error'], LOGGER_DEBUG);
- logger('z_post_url: debug:' . print_r($curl_info,true), LOGGER_DATA);
+ logger('z_post_url: error: ' . $url . ': ' . $ret['error'], LOGGER_DEBUG);
+ logger('z_post_url: debug: ' . print_r($curl_info,true), LOGGER_DATA);
}
$ret['body'] = substr($s,strlen($header));