mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 01:55:21 +02:00
test: add feed item test (#3709)
* test: add feed item test also some refactor * yup * yup
This commit is contained in:
parent
cd30c25b08
commit
f421c45b21
10 changed files with 98 additions and 81 deletions
|
@ -15,6 +15,7 @@ function getContents(
|
|||
bool $returnFull = false
|
||||
) {
|
||||
$httpClient = RssBridge::getHttpClient();
|
||||
$cache = RssBridge::getCache();
|
||||
|
||||
$httpHeadersNormalized = [];
|
||||
foreach ($httpHeaders as $httpHeader) {
|
||||
|
@ -51,7 +52,6 @@ function getContents(
|
|||
$config['proxy'] = Configuration::getConfig('proxy', 'url');
|
||||
}
|
||||
|
||||
$cache = RssBridge::getCache();
|
||||
$cacheKey = 'server_' . $url;
|
||||
|
||||
/** @var Response $cachedResponse */
|
||||
|
|
|
@ -148,7 +148,7 @@ final class StreamHandler
|
|||
$context
|
||||
);
|
||||
error_log($text);
|
||||
if (Debug::isEnabled()) {
|
||||
if ($record['level'] < Logger::ERROR && Debug::isEnabled()) {
|
||||
print sprintf("<pre>%s</pre>\n", e($text));
|
||||
}
|
||||
//$bytes = file_put_contents('/tmp/rss-bridge.log', $text, FILE_APPEND | LOCK_EX);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue