From b73d4c807f8bce7090eb0d37cf4448dbb248ba2b Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 8 Jan 2019 00:06:01 +0100 Subject: COPY_SYSLOG_TO_STDERR (#2213) Update of https://github.com/FreshRSS/FreshRSS/pull/2208 Fixes https://github.com/FreshRSS/FreshRSS/issues/2212 --- constants.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'constants.php') diff --git a/constants.php b/constants.php index 3a8c213d4..89eb5cda1 100644 --- a/constants.php +++ b/constants.php @@ -32,6 +32,9 @@ safe_define('FRESHRSS_USERAGENT', 'FreshRSS/' . FRESHRSS_VERSION . ' (' . PHP_OS // PHP text output compression http://php.net/ob_gzhandler (better to do it at Web server level) safe_define('PHP_COMPRESSION', false); +// For cases when syslog is not available +safe_define('COPY_SYSLOG_TO_STDERR', isset($_SERVER['COPY_SYSLOG_TO_STDERR']) ? filter_var($_SERVER['COPY_SYSLOG_TO_STDERR'], FILTER_VALIDATE_BOOLEAN) : false); + // Maximum log file size in Bytes, before it will be divided by two safe_define('MAX_LOG_SIZE', 1048576); -- cgit v1.2.3