Add logBackTrace() call to error_log class so we can determine code flow during error logging

This commit is contained in:
Chris Morgan
2006-07-20 03:50:47 +00:00
committed by WineHQ
parent f7763bdbfa
commit 34594b6eb4

View File

@@ -31,6 +31,17 @@ class error_log
'0');
}
/* get a backtrace and log it to the database */
function logBackTrace($sDescription)
{
ob_start();
print_r(debug_backtrace());
$sDebugOutput = ob_get_contents();
ob_end_clean();
error_log::log_error("general_error", $sDescription.' '.$sDebugOutput);
}
function getEntryCount()
{
$sQuery = "SELECT count(*) as cnt FROM error_log WHERE deleted = '0'";