Task 0001912: Developpement DEBUG new system with level

This commit is contained in:
sparkyx 2021-03-19 14:09:45 +01:00
parent 5956d4620c
commit a2c0e116fa
23 changed files with 96 additions and 70 deletions

View file

@ -147,7 +147,7 @@ class Database extends DatabaseCore
$this->execute_script(NOALYSS_INCLUDE . '/sql/patch/upgrade' . $i . '.sql');
echo $succeed;
if (!DEBUG)
if ( DEBUGNOALYSS == 0)
ob_start();
// specific for version 4
if ($i == 4) {
@ -224,7 +224,7 @@ class Database extends DatabaseCore
$this->execute_script(NOALYSS_INCLUDE . "/sql/patch/upgrade141." . $country . ".sql");
}
if (!DEBUG)
if (DEBUGNOALYSS == 0 )
ob_end_clean();
}