mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-25 13:14:43 +02:00
fix: tweak logging rules (#4551)
This commit is contained in:
parent
fd267df0e9
commit
b8c0c1f3b8
2 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue