mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 01:55:21 +02:00
refactor: logger (#3678)
This commit is contained in:
parent
360f953be8
commit
7329b83cc0
30 changed files with 297 additions and 338 deletions
|
@ -63,7 +63,7 @@ TEXT;
|
|||
try {
|
||||
$this->collectExpandableDatas($feed);
|
||||
} catch (HttpException $e) {
|
||||
Logger::warning(sprintf('Exception in FeedMergeBridge: %s', create_sane_exception_message($e)));
|
||||
$this->logger->warning(sprintf('Exception in FeedMergeBridge: %s', create_sane_exception_message($e)));
|
||||
$this->items[] = [
|
||||
'title' => 'RSS-Bridge: ' . $e->getMessage(),
|
||||
// Give current time so it sorts to the top
|
||||
|
@ -73,7 +73,7 @@ TEXT;
|
|||
} catch (\Exception $e) {
|
||||
if (str_starts_with($e->getMessage(), 'Unable to parse xml')) {
|
||||
// Allow this particular exception from FeedExpander
|
||||
Logger::warning(sprintf('Exception in FeedMergeBridge: %s', create_sane_exception_message($e)));
|
||||
$this->logger->warning(sprintf('Exception in FeedMergeBridge: %s', create_sane_exception_message($e)));
|
||||
continue;
|
||||
}
|
||||
throw $e;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue