From: Michael Vogel Date: Thu, 7 Aug 2014 06:22:32 +0000 (+0200) Subject: fetch_url: Logging the data only when at the "data" loglevel X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=07bc8ca166d8ef0618c353d110e0c15916f268d7;p=friendica.git fetch_url: Logging the data only when at the "data" loglevel --- diff --git a/include/network.php b/include/network.php index 3a775af3c6..4c6af8e71b 100644 --- a/include/network.php +++ b/include/network.php @@ -72,8 +72,7 @@ function fetch_url($url,$binary = false, &$redirects = 0, $timeout = 0, $accept_ $base = $s; $curl_info = @curl_getinfo($ch); $http_code = $curl_info['http_code']; - logger('fetch_url '.$url.': '.$http_code." *".$s."*", LOGGER_DEBUG); - //logger('fetch_url:' . $http_code . ' data: ' . $s); + logger('fetch_url '.$url.': '.$http_code." ".$s, LOGGER_DATA); $header = ''; // Pull out multiple headers, e.g. proxy and continuation headers