0
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-06-29 18:21:07 +00:00

fix: tweak logging rules (#4551)

This commit is contained in:
Dag 2025-05-09 05:58:11 +02:00 committed by GitHub
parent fd267df0e9
commit b8c0c1f3b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -92,7 +92,7 @@ class TelegramBridge extends BridgeAbstract
}
}
$this->logger->info(sprintf('Fetched %s messages from %s pages (%s)', count($this->items), $pages, $url));
$this->logger->debug(sprintf('Fetched %s messages from %s pages (%s)', count($this->items), $pages, $url));
$this->items = array_reverse($this->items);
}

View File

@ -71,13 +71,14 @@ final class SimpleLogger implements Logger
$ignoredMessages = [
'Format name invalid',
'Unknown format given',
'Unable to find channel',
'Unable to find',
];
foreach ($ignoredMessages as $ignoredMessage) {
if (str_starts_with($message, $ignoredMessage)) {
return;
}
}
foreach ($this->handlers as $handler) {
$handler([
'name' => $this->name,