refactor: drop usage of Debug::log (#4202)

* refactor: drop usage of Debug::log

* lint
This commit is contained in:
Dag 2024-08-08 04:31:47 +02:00 committed by GitHub
parent 6afd13eb06
commit 2acd415475
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 37 additions and 105 deletions

View file

@ -70,9 +70,9 @@ class ThreadsBridge extends BridgeAbstract
public function collectData()
{
$html = getSimpleHTMLDOMCached($this->getURI(), static::CACHE_TIMEOUT);
Debug::log(sprintf('Fetched: %s', $this->getURI()));
$jsonBlobs = $html->find('script[type="application/json"]');
Debug::log(sprintf('%d JSON blobs found.', count($jsonBlobs)));
$gatheredCodes = [];
$limit = $this->getInput('limit');
foreach ($jsonBlobs as $jsonBlob) {
@ -87,7 +87,6 @@ class ThreadsBridge extends BridgeAbstract
}
}
}
Debug::log(sprintf('Candidate codes found in JSON in script tags: %s', print_r($gatheredCodes, true)));
$this->feedName = html_entity_decode($html->find('meta[property=og:title]', 0)->content);
// todo: meta[property=og:description] could populate the feed description