diff options
| author | 2019-01-06 00:46:48 +0100 | |
|---|---|---|
| committer | 2019-01-06 00:46:48 +0100 | |
| commit | 802c264574902ea44c2c76ae098a6f58911fe114 (patch) | |
| tree | db0082010f01f555244523adc2f2e0c27c363acc /p | |
| parent | 20223b8b01f47fba0858d854c5744fad5900b9cc (diff) | |
Copy syslog to STDERR (#2208)
* Use openlog before syslog
In order to have a copy on stderr when syslog is not available.
* Take advantage of syslog for actualization
Pipe cron job STDERR and syslog to Docker log
Cf. https://github.com/FreshRSS/FreshRSS/pull/2202/commits/00bd467655b7c060cdae388519b2413d12d8cb0f
Diffstat (limited to 'p')
| -rwxr-xr-x | p/i/index.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/p/i/index.php b/p/i/index.php index 5bc9c0d76..8a4f529d4 100755 --- a/p/i/index.php +++ b/p/i/index.php @@ -50,5 +50,7 @@ if (file_exists(DATA_PATH . '/do-install.txt')) { echo '### Fatal error! ###<br />', "\n"; Minz_Log::error($e->getMessage()); echo 'See logs files.'; + prepareSyslog(); + syslog(LOG_INFO, 'FreshRSS Fatal error! ' . $e->getMessage()); } } |
