diff options
| author | 2019-01-08 00:06:01 +0100 | |
|---|---|---|
| committer | 2019-01-08 00:06:01 +0100 | |
| commit | b73d4c807f8bce7090eb0d37cf4448dbb248ba2b (patch) | |
| tree | c8e5b18ebfaee6b351a2cd90824ffa596f517285 /constants.php | |
| parent | 15d74d934708896706278574af159a9dcb3a4313 (diff) | |
COPY_SYSLOG_TO_STDERR (#2213)
Update of https://github.com/FreshRSS/FreshRSS/pull/2208
Fixes https://github.com/FreshRSS/FreshRSS/issues/2212
Diffstat (limited to 'constants.php')
| -rw-r--r-- | constants.php | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
