[Rpm-maint] [rpm-software-management/rpm] Add rpmLogOnce to filter log message (Issue #3395)
Panu Matilainen
notifications at github.com
Tue Oct 29 10:18:38 UTC 2024
Let's look at the bigger picture here a bit, because #3336 is an isolated use-case and rather unusual at that so it's actually not that interesting in itself. The typical case of log suppression we'd want is of the "last message repeated 123 times" kind rather than silence *all* the following messages.
We have at least the following cases with different needs wrt lifetime:
1) per transaction
2) per package in transaction
3) spec parse (optionally followed by package build)
4) process lifetime
1-2 and 3 are kinda separate groups and typically don't exist within the same process. I'm quite sure we technically have stuff that would qualify for 1) besides #3336, and 4) is all we have at the moment.
I see two ways to think about #3336: either its about unknown key tracking with specific semantics, or its just a warning message with a particular implementation. In the latter case we could just replace the existing behavior of unknown key tracking with the "last warning repeated 123 times" that the rest of the log suppression wants. I don't know if we have anything else that has the same semantics as the current unknown key warning - maybe we do, I just don't remember any atm.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3395#issuecomment-2443807770
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/3395/2443807770 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241029/74ac9f68/attachment-0001.html>
More information about the Rpm-maint
mailing list