Force log check each based in configuration state

This commit is contained in:
fbsanchez 2022-02-16 19:04:41 +01:00
parent af45aec166
commit 4d1ddc2066
1 changed files with 12 additions and 0 deletions

View File

@ -311,3 +311,15 @@ if (isset($_SESSION['meny_type']) === true && empty($_SESSION['menu_type']) ===
} else {
$config['menu_type'] = 'classic';
}
// Log.
if (isset($config['console_log_enabled']) === true
&& $config['console_log_enabled'] == 1
) {
ini_set('log_errors', true);
ini_set('error_log', $config['homedir'].'/log/console.log');
} else {
ini_set('log_errors', false);
ini_set('error_log', '');
}