1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Extra header information added to debug info.

This commit is contained in:
Cameron 2021-06-01 15:13:37 -07:00
parent 2a94814e8a
commit 8023a2b9f6

View File

@ -374,10 +374,15 @@ class redirection
if(deftrue('e_DEBUG_REDIRECT'))
if(deftrue('e_DEBUG_REDIRECT') && strpos($url, 'sitedown.php') === false)
{
$error = debug_backtrace();
$sent = headers_list();
$message = "Headers previously sent: ".print_r($sent,true);
e107::getLog()->addDebug($message);
print_a($message);
$message = "URL: ".$url."\nFile: ".$error[1]['file']."\nLine: ".$error[1]['line']."\nClass: ".$error[1]['class']."\nFunction: ".$error[1]['function']."\n\n";
e107::getLog()->addDebug($message);
echo "Debug active";