Browse Source

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

pull/1065/head
Michael Vogel 6 years ago
parent
commit
07bc8ca166
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      include/network.php

+ 1
- 2
include/network.php View 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


Loading…
Cancel
Save