aboutsummaryrefslogtreecommitdiff
path: root/lib/favicons.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-01-06 00:46:48 +0100
committerGravatar GitHub <noreply@github.com> 2019-01-06 00:46:48 +0100
commit802c264574902ea44c2c76ae098a6f58911fe114 (patch)
treedb0082010f01f555244523adc2f2e0c27c363acc /lib/favicons.php
parent20223b8b01f47fba0858d854c5744fad5900b9cc (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 'lib/favicons.php')
-rw-r--r--lib/favicons.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/favicons.php b/lib/favicons.php
index fe2e65f1f..7a2d1187e 100644
--- a/lib/favicons.php
+++ b/lib/favicons.php
@@ -22,6 +22,7 @@ function isImgMime($content) {
}
function downloadHttp(&$url, $curlOptions = array()) {
+ prepareSyslog();
syslog(LOG_INFO, 'FreshRSS Favicon GET ' . $url);
if (substr($url, 0, 2) === '//') {
$url = 'https:' . $url;