diff options
| author | 2020-05-15 18:23:15 +0200 | |
|---|---|---|
| committer | 2020-05-15 18:23:15 +0200 | |
| commit | 6f3e5d99b460f4fc251306862a067cd5ff1c39e6 (patch) | |
| tree | 45d4507adc8b1cd63caadd6de51fe1bbba2a8571 /app/actualize_script.php | |
| parent | 554ac88d9869e6aab352fdd5136a427fbc5f1b27 (diff) | |
Revert to STDOUT for cron messages (#2979)
#fix https://github.com/FreshRSS/FreshRSS/issues/2975
Diffstat (limited to 'app/actualize_script.php')
| -rwxr-xr-x | app/actualize_script.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/actualize_script.php b/app/actualize_script.php index e898d4a1d..b19acaaac 100755 --- a/app/actualize_script.php +++ b/app/actualize_script.php @@ -4,15 +4,15 @@ 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 STDERR + * 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('STDERR') && !COPY_SYSLOG_TO_STDERR) { - fwrite(STDERR, $message . "\n"); //Unbuffered + if (defined('STDOUT') && !COPY_SYSLOG_TO_STDERR) { + fwrite(STDOUT, $message . "\n"); //Unbuffered } } |
