forked from Wavyzz/dolibarr
Fix name of debug constant
This commit is contained in:
@@ -238,9 +238,10 @@ function getURLContent($url, $postorget = 'GET', $param = '', $followlocation =
|
||||
$request = curl_getinfo($ch, CURLINFO_HEADER_OUT); // Reading of request must be done after sending request
|
||||
|
||||
dol_syslog("getURLContent request=".$request);
|
||||
if (!empty($conf->global->MAIN_GETURLCONTENT_OUTPUT_RESPONSE)) {
|
||||
if (getDolGlobalInt('MAIN_CURL_DEBUG')) {
|
||||
// This may contains binary data, so we dont output reponse by default.
|
||||
dol_syslog("getURLContent response =".$response);
|
||||
dol_syslog("getURLContent request=".$request, LOG_DEBUG, '_curl');
|
||||
dol_syslog("getURLContent response =".$response, LOG_DEBUG, '_curl');
|
||||
}
|
||||
dol_syslog("getURLContent response size=".strlen($response)); // This may contains binary data, so we dont output it
|
||||
|
||||
|
||||
Reference in New Issue
Block a user