diff options
| author | 2020-01-03 18:50:33 +0100 | |
|---|---|---|
| committer | 2020-01-03 18:50:33 +0100 | |
| commit | acc50df0efef8bd9fa937a5d640314c0e78e9117 (patch) | |
| tree | 12f2c98ff00f3b28e6f6732fd2035c6f30a29d28 /p | |
| parent | 94db40a742dded71f80f85821cd3da5f462a4757 (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 'p')
| -rwxr-xr-x | p/i/index.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/p/i/index.php b/p/i/index.php index 8a4f529d4..d366566ab 100755 --- a/p/i/index.php +++ b/p/i/index.php @@ -50,7 +50,6 @@ 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()); } } |
