diff --git a/pandora_console/ajax.php b/pandora_console/ajax.php index 6b90a18da0..9ccb73b8ae 100644 --- a/pandora_console/ajax.php +++ b/pandora_console/ajax.php @@ -52,6 +52,15 @@ require_once 'include/functions.php'; require_once 'include/functions_db.php'; require_once 'include/auth/mysql.php'; +if (isset($config['console_log_enabled']) && $config['console_log_enabled'] == 1) { + ini_set('log_errors', 1); + ini_set('error_log', $config['homedir'].'/log/console.log'); +} else { + ini_set('log_errors', 0); + ini_set('error_log', 0); +} + + // Hash login process if (isset($_GET['loginhash'])) { $loginhash_data = get_parameter('loginhash_data', '');