From 07bc8ca166d8ef0618c353d110e0c15916f268d7 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 7 Aug 2014 08:22:32 +0200 Subject: [PATCH] fetch_url: Logging the data only when at the "data" loglevel --- include/network.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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