aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-01-08 00:06:01 +0100
committerGravatar GitHub <noreply@github.com> 2019-01-08 00:06:01 +0100
commitb73d4c807f8bce7090eb0d37cf4448dbb248ba2b (patch)
treec8e5b18ebfaee6b351a2cd90824ffa596f517285 /lib
parent15d74d934708896706278574af159a9dcb3a4313 (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 'lib')
-rw-r--r--lib/lib_rss.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index 738ccf641..89e9ddfea 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -203,7 +203,7 @@ function html_only_entity_decode($text) {
}
function prepareSyslog() {
- return openlog("FreshRSS", LOG_PERROR | LOG_PID, LOG_USER);
+ return COPY_SYSLOG_TO_STDERR ? openlog("FreshRSS", LOG_PERROR | LOG_PID, LOG_USER) : false;
}
function customSimplePie($attributes = array()) {