v1.4.1: per-run summary log (feeds/evaluated/selected/filtered/failed)

- _broadcast checks match filter and returns (placed, filtered, failed)
- _poll_once accumulates per-run counters, logs one summary line per run
- run_log_file config writes to /data/buzzrss-runs.log (persistent mount)
- _poll_feeds re-raises CancelledError so reloads stop old poll loops
- _setup_run_log fully resets handlers; empty config disables logging
This commit is contained in:
Eddy de Vink 2026-09-05 23:54:09 +02:00
commit 1f92b38ba6
3 changed files with 97 additions and 17 deletions

View file

@ -12,9 +12,10 @@ spam_sleep: 2
command_prefix: "rss"
# Default post notification template for new subscriptions
notification_template: "New post in $feed_title: [$title]($link)"
# Should non-admin users be allowed to set regex filters to drop posts from feeds?
# Regexes are dangerous and may lead to DoS attacks.
allow_filter: false
# Per-run summary logfile: one line per poll run with feeds/evaluated/selected/filtered/failed counts.
# Absoluut pad in de container aanraden: /data is de persistente maubot-mount (host: /matrix/maubot/data).
# Leeg = uitgeschakeld.
run_log_file: /data/buzzrss-runs.log
# Exclude paywalled articles (Telegraaf/NHD markeren dit met <premium>true</premium>)
exclude_paywalled: true
# Global match filter (whitelist): applies to ALL feeds in this instance.