mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Remove old debug constants
This commit is contained in:
parent
968e25cd6e
commit
6b4d69bcc2
14 changed files with 29 additions and 228 deletions
|
|
@ -383,24 +383,12 @@ class DB
|
|||
}
|
||||
}
|
||||
|
||||
// leave error log if an error occured (if __DEBUG_DB_OUTPUT__ is defined)
|
||||
// leave error log if an error occured
|
||||
if($this->isError())
|
||||
{
|
||||
$log['result'] = 'error';
|
||||
$log['errno'] = $this->errno;
|
||||
$log['errstr'] = $this->errstr;
|
||||
|
||||
if(__DEBUG_DB_OUTPUT__ == 1)
|
||||
{
|
||||
$debug_file = _XE_PATH_ . "files/_debug_db_query.php";
|
||||
$buff = array();
|
||||
if(!file_exists($debug_file))
|
||||
{
|
||||
$buff[] = '<?php exit(); ?' . '>';
|
||||
}
|
||||
$buff[] = print_r($log, TRUE);
|
||||
@file_put_contents($log_file, implode("\n", $buff) . "\n\n", FILE_APPEND|LOCK_EX);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue