mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-06-30 02:31: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);
|
$this->items = array_reverse($this->items);
|
||||||
}
|
}
|
||||||
|
@ -71,13 +71,14 @@ final class SimpleLogger implements Logger
|
|||||||
$ignoredMessages = [
|
$ignoredMessages = [
|
||||||
'Format name invalid',
|
'Format name invalid',
|
||||||
'Unknown format given',
|
'Unknown format given',
|
||||||
'Unable to find channel',
|
'Unable to find',
|
||||||
];
|
];
|
||||||
foreach ($ignoredMessages as $ignoredMessage) {
|
foreach ($ignoredMessages as $ignoredMessage) {
|
||||||
if (str_starts_with($message, $ignoredMessage)) {
|
if (str_starts_with($message, $ignoredMessage)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->handlers as $handler) {
|
foreach ($this->handlers as $handler) {
|
||||||
$handler([
|
$handler([
|
||||||
'name' => $this->name,
|
'name' => $this->name,
|
||||||
|
Loading…
Reference in New Issue
Block a user