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

Remove some debug logs. Improved others.

This commit is contained in:
Cameron 2020-12-19 11:46:58 -08:00
parent 6fb33e7cad
commit 6b5cc07929
2 changed files with 9 additions and 6 deletions

View File

@ -456,11 +456,15 @@ class e_array {
if(e_DEBUG === true && json_last_error() != JSON_ERROR_NONE && !e107::isCli()) if(e_DEBUG === true && json_last_error() != JSON_ERROR_NONE && !e107::isCli())
{ {
echo "<div class='alert alert-danger'><h4>e107::unserialize() Parser Error (json)</h4></div>"; e107::getDebug()->log("e107::unserialize() Parser Error (json)");
echo "<pre>";
debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 3); $dbg = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 9);
file_put_contents(e_LOG.'unserializeError_'.date('c').'.log', $ArrayData);
echo "</pre>"; $fileName = e_LOG.'unserializeError_'.time().'.log';
file_put_contents($fileName, "input:". $sourceArrayData."\nbacktrace:\n".print_r($dbg,true));
return null;
} }
return $dat; return $dat;

View File

@ -523,7 +523,6 @@
// while(list($tKey, $tMarker) = each($this->aTimeMarks)) // while(list($tKey, $tMarker) = each($this->aTimeMarks))
foreach ($it as $tKey=>$tMarker) foreach ($it as $tKey=>$tMarker)
{ {
file_put_contents(e_LOG."debugPerformance.log",$tKey."\t". $sMarker."\n", FILE_APPEND);
if(!$bRowHeaders) if(!$bRowHeaders)
{ {