aboutsummaryrefslogtreecommitdiff
path: root/constants.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-10-26 11:19:42 +0200
committerGravatar GitHub <noreply@github.com> 2019-10-26 11:19:42 +0200
commit3c49986ec895595edc632da0f14419199ce47667 (patch)
treeba22912ac6dd788df389c00b43252e26ce244686 /constants.php
parent623769b5aeb19e0d0b1684d61fce429961e29116 (diff)
New environment variable COPY_LOG_TO_SYSLOG (#2591)
* New environment variable COPY_LOG_TO_SYSLOG False by default. Makes it easy to monitor all logs from Syslog or STDERR (e.g. docker logs). * Suggestion of native constants
Diffstat (limited to 'constants.php')
-rw-r--r--constants.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/constants.php b/constants.php
index 76a320616..2ccf91358 100644
--- a/constants.php
+++ b/constants.php
@@ -32,6 +32,7 @@ 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);
+safe_define('COPY_LOG_TO_STDERR', filter_var(getenv('COPY_LOG_TO_STDERR'), FILTER_VALIDATE_BOOLEAN));
// For cases when syslog is not available
safe_define('COPY_SYSLOG_TO_STDERR', filter_var(getenv('COPY_SYSLOG_TO_STDERR'), FILTER_VALIDATE_BOOLEAN));