On Fri, 3 Nov 2023 11:21:40 +0100 VA <b...@indigo.re> wrote:> Are there
any news on this? In just one week:
journalctl -S 2023-10-27 _SYSTEMD_UNIT=tt-rss.service | wc -l
1057249
And logs that are not about garbage:
journalctl -S 2023-10-27 _SYSTEMD_UNIT=tt-rss.service | grep -iv warning
| grep -iv deprecated | wc -l
1051
So a whopping 99.9% of tt-rss logs are absolute garbage that just point
at badly written code.
The best thing would be of course to fix those deprecation warnings, but
at least we could hide them to avoid consuming disk space with
completely useless stuff.
In our case, what I ended up doing is to filter all of these logs out
using the LogFilterPatterns [1] of systemd v253+ (installed from
bookworm-backports), by adding a systemd override file:
diff --git a/systemd/system/tt-rss.service.d/override.conf
b/systemd/system/tt-rss.service.d/override.conf
new file mode 100644
index 00000000..9f4f6479
--- /dev/null
+++ b/systemd/system/tt-rss.service.d/override.conf
@@ -0,0 +1,2 @@
+[Service]
+LogFilterPatterns=~E_WARNING|E_DEPRECATED|E_NOTICE|PHP Warning
[1]:
https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#LogFilterPatterns=
--
Nicolas Peugnet