From e9d38e847caeb5c4fe7a0e8a11f1e5a9e5e70f60 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 5 Jun 2018 09:05:53 +0200 Subject: [PATCH] Re-add setting error_log=syslog when log_driver=syslog --- program/lib/Roundcube/rcube_config.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/program/lib/Roundcube/rcube_config.php b/program/lib/Roundcube/rcube_config.php index 73e7738a6..3c0bebf87 100644 --- a/program/lib/Roundcube/rcube_config.php +++ b/program/lib/Roundcube/rcube_config.php @@ -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); }