diff options
Diffstat (limited to 'app/actualize_script.php')
| -rwxr-xr-x | app/actualize_script.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/app/actualize_script.php b/app/actualize_script.php index 1e3514de7..721376f62 100755 --- a/app/actualize_script.php +++ b/app/actualize_script.php @@ -2,20 +2,6 @@ <?php require(__DIR__ . '/../cli/_cli.php'); -/** - * Writes to FreshRSS admin log, and if it is not already done by default, - * writes to syslog (only if simplepie_syslog_enabled in FreshRSS configuration) and to STDOUT - */ -function notice($message) { - Minz_Log::notice($message, ADMIN_LOG); - if (!COPY_LOG_TO_SYSLOG && SIMPLEPIE_SYSLOG_ENABLED) { - syslog(LOG_NOTICE, $message); - } - if (defined('STDOUT') && !COPY_SYSLOG_TO_STDERR) { - fwrite(STDOUT, $message . "\n"); //Unbuffered - } -} - session_cache_limiter(''); ob_implicit_flush(false); ob_start(); @@ -35,6 +21,20 @@ FreshRSS_Context::initSystem(); FreshRSS_Context::$system_conf->auth_type = 'none'; // avoid necessity to be logged in (not saved!) define('SIMPLEPIE_SYSLOG_ENABLED', FreshRSS_Context::$system_conf->simplepie_syslog_enabled); +/** + * Writes to FreshRSS admin log, and if it is not already done by default, + * writes to syslog (only if simplepie_syslog_enabled in FreshRSS configuration) and to STDOUT + */ +function notice($message) { + Minz_Log::notice($message, ADMIN_LOG); + if (!COPY_LOG_TO_SYSLOG && SIMPLEPIE_SYSLOG_ENABLED) { + syslog(LOG_NOTICE, $message); + } + if (defined('STDOUT') && !COPY_SYSLOG_TO_STDERR) { + fwrite(STDOUT, $message . "\n"); //Unbuffered + } +} + notice('FreshRSS starting feeds actualization at ' . $begin_date->format('c')); // make sure the PHP setup of the CLI environment is compatible with FreshRSS as well |
