mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-27 21:56:50 +01:00
Log database queries into database.log when enabled
Instead of showing in page sources (it was impractical)
This commit is contained in:
@@ -386,10 +386,6 @@ if(superAdmin()) {
|
||||
if(function_exists('memory_get_peak_usage')) {
|
||||
echo PHP_EOL . '<!-- Peak memory usage: ' . convert_bytes(memory_get_peak_usage(true)) . ' -->';
|
||||
}
|
||||
|
||||
if($config['database_log']) {
|
||||
echo PHP_EOL . '<!-- List of MySQL queries done:' . PHP_EOL . $db->getLog() . '-->';
|
||||
}
|
||||
}
|
||||
|
||||
$hooks->trigger(HOOK_FINISH);
|
||||
|
||||
Reference in New Issue
Block a user