2
0
forked from Wavyzz/dolibarr

Fix name of debug constant

This commit is contained in:
Laurent Destailleur
2023-09-15 22:38:19 +02:00
parent dd7c09bb15
commit 2a8c4dfb6a
2 changed files with 5 additions and 4 deletions

View File

@@ -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