aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Entry.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-01-03 18:50:33 +0100
committerGravatar GitHub <noreply@github.com> 2020-01-03 18:50:33 +0100
commitacc50df0efef8bd9fa937a5d640314c0e78e9117 (patch)
tree12f2c98ff00f3b28e6f6732fd2035c6f30a29d28 /app/Models/Entry.php
parent94db40a742dded71f80f85821cd3da5f462a4757 (diff)
Fix logging environment constants (#2745)
* Fix logging environment constants * COPY_LOG_TO_SYSLOG was only working when Syslog was used * FRESHRSS_ENV was not properly used to set logging level * Simplify code Always call `openlog()` even when it is not used * Always specify syslog properties https://github.com/FreshRSS/FreshRSS/pull/2745#discussion_r362207445 * $username is also needed further down * No new line in syslog
Diffstat (limited to 'app/Models/Entry.php')
-rw-r--r--app/Models/Entry.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php
index d90f828bc..2aa99baa9 100644
--- a/app/Models/Entry.php
+++ b/app/Models/Entry.php
@@ -322,7 +322,6 @@ class FreshRSS_Entry extends Minz_Model {
$feed_timeout = empty($attributes['timeout']) ? 0 : intval($attributes['timeout']);
if ($system_conf->simplepie_syslog_enabled) {
- prepareSyslog();
syslog(LOG_INFO, 'FreshRSS GET ' . SimplePie_Misc::url_remove_credentials($url));
}