Re-add setting error_log=syslog when log_driver=syslog

pull/6320/head
Aleksander Machniak 7 years ago
parent 4d47fb6f0b
commit e9d38e847c

@ -245,11 +245,13 @@ class rcube_config
}
// set PHP error logging according to config
$error_log = $this->prop['log_driver'];
if ($error_log != 'syslog') {
$error_log = $this->prop['log_driver'] ?: 'file';
if ($error_log == 'file') {
$error_log = $this->prop['log_dir'] . '/errors';
$error_log .= isset($this->prop['log_file_ext']) ? $this->prop['log_file_ext'] : '.log';
}
if ($error_log && $error_log != 'stdout') {
ini_set('error_log', $error_log);
}

Loading…
Cancel
Save