fetch_url: Logging the data only when at the "data" loglevel

This commit is contained in:
Michael Vogel 2014-08-07 08:22:32 +02:00
parent 16803645ef
commit 07bc8ca166
1 changed files with 1 additions and 2 deletions

View File

@ -72,8 +72,7 @@ function fetch_url($url,$binary = false, &$redirects = 0, $timeout = 0, $accept_
$base = $s; $base = $s;
$curl_info = @curl_getinfo($ch); $curl_info = @curl_getinfo($ch);
$http_code = $curl_info['http_code']; $http_code = $curl_info['http_code'];
logger('fetch_url '.$url.': '.$http_code." *".$s."*", LOGGER_DEBUG); logger('fetch_url '.$url.': '.$http_code." ".$s, LOGGER_DATA);
//logger('fetch_url:' . $http_code . ' data: ' . $s);
$header = ''; $header = '';
// Pull out multiple headers, e.g. proxy and continuation headers // Pull out multiple headers, e.g. proxy and continuation headers