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:
parent
fd267df0e9
commit
b8c0c1f3b8
@ -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…
Reference in New Issue
Block a user