]> git.mxchange.org Git - friendica.git/commitdiff
fetch_url: Logging the data only when at the "data" loglevel
authorMichael Vogel <icarus@dabo.de>
Thu, 7 Aug 2014 06:22:32 +0000 (08:22 +0200)
committerMichael Vogel <icarus@dabo.de>
Thu, 7 Aug 2014 06:22:32 +0000 (08:22 +0200)
include/network.php

index 3a775af3c6676192abdb2e834c3e3012bd391198..4c6af8e71b45e0e599b4dc7c5c67394f33f67f79 100644 (file)
@@ -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