From acc50df0efef8bd9fa937a5d640314c0e78e9117 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 3 Jan 2020 18:50:33 +0100 Subject: 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 --- app/actualize_script.php | 1 - 1 file changed, 1 deletion(-) (limited to 'app/actualize_script.php') diff --git a/app/actualize_script.php b/app/actualize_script.php index f1dec5640..399f7b18e 100755 --- a/app/actualize_script.php +++ b/app/actualize_script.php @@ -12,7 +12,6 @@ if (defined('STDOUT')) { fwrite(STDOUT, 'Starting feed actualization at ' . $begin_date->format('c') . "\n"); //Unbuffered } -prepareSyslog(); syslog(LOG_INFO, 'FreshRSS Start feeds actualization...'); // Set the header params ($_GET) to call the FRSS application. -- cgit v1.2.3